A mix of donations for the larger instances, and some self-hosting for smaller instances. E.g., lemmy.world has a couple of links for Donations in the sidebar. Kbin got some seed money from NLnet.
The whole thing is federated, so this costs are distributed, and I'd imagine largely pro bono.