The time of the freebies for web-development is going to be over soon . I wouldn't trust any service, from Github to google API A or B, to remain free for ever. Especially Github which is moving to "enterprise" at a fast pace. As for PaaS or Saas, given how many businesses closed last year, the remaining offers will certainly get more expensive and any free tier discarded.
But the initial issue is certainly the business model. If you can't even pay for hosting anymore, you need to raise prices. A one time buy wasn't going to cover all the author's expenses.
For companies that offer a "free" tier (e.g. Bing/Google maps), for sure, sooner or later, a switch to paid is very likely.
But there are organisations that have a completely different justification for existing: OpenStreetMap springs to mind, as does the UK's Ordnance Survey (which is essentially a Government body, albeit cloaked as a private company, 100% in public ownership). Although they'll always need some source of funding to keep operating, their goal isn't to maximise possible revenue, so as long as it's viable to offer free mapping, they're likely to carry on doing so.
Real estate data is similarly messy and though we have a small engineering team (3 full-time programmers), we decided to roll our own data integrations with each of the MLS systems we connect to. For us, it came down to the fact that we could provide a better user experience this way (faster, more complete listing data) and that it fits with our approach to product development. Rather than using a data middleman to turn on 50% listing coverage across the entire US, we pick a city or region and piece together all of the listing sources so that when we go live in that region we have extremely high coverage. We then only advertise to users in those areas.
In a sense, platform APIs allow the platform owner to understand what customers want without needing to deploy product talent to deploy it. Twitter has perfected this strategy. As soon as a third party comes up with a neat idea with your API, you can build your own "official" version of their app, throttle their usage and hopefully their business model.