Mastodon is a non-profit platform and does not make money through ads or data-mining. Instead it makes money from a mix of; Patreon donations, sponsorships, feediverse subscriptions, selling storage space and various community fees.