Homebrew and Commercial Kegerators do the same thing. They chill beer and allow you to serve it. Each has lines for gas (typically CO2) and beer. The only difficult thing about switching back and forth are the fittings and taps.
Commercial kegs use commercial keg couplers or taps. These taps vary based on the brewery. A typical style for US kegs is Sanke type D. Commercial taps typically handle liquid and gas in single unit while homebrew couplers separate these out into gas and liquid quick disconnects.