It goes to the node that opens a channel for you. It's a paid service for them as they need to lock a lot of capital so you have a nice big and reliable channel.
You can also open a channel to them with on-chain flow, without additional cost (except onchain fee), but they may close it after some time if you don't use your channel