The cheese is melted into a sauce with the beer and then poured over the bread. There’s usually some other flavouring too like mustard and Worcestershire sauce.
It’s the liquid you melt the butter and mix the mustard and Worcestershire into before adding the cheese. It’s a tiny amount of beer. Just enough to get the cheese liquid.