frothing milk makes the milk taste sweeter.
it's not that the milk is actually sweeter, but as it heats up its perceived sweetness increases. so when a barista is making you a beautiful espresso drink with perfectly frothed coffee, it's going to taste a little sweeter than if you just added milk to black coffee.