There are several different common approaches to make mac and cheese:
This actually uses a daughter sauce of Béchamel, known as Mournay sauce.
Here you reduce white wine, which results in a mixture that ends up containing a lot of sodium citrate.
Sodium citrate is a common food additive, and here it functions as an emulsifier.
Background reading:
Here, you're using cheese that has already been made into a fondue (and then solidified), so it already contains the emulsifiers you need. Often you can use as little as 50% American cheese, which lets you combine it with other cheeses that have the flavor you want.
† A starch-and-cheese-type method.
‡ A fondue-type method.