I see Cloudflare's free tier advantage exactly like that: 1) the offloading of the web firewall function (and possibly caching of static pages on edge servers spread around the world) to someone else's servers which you don't have to maintain, and 2) CF's ability to embed some advanced functions and data they have direct access to into easy to use rules.
It is definitely possible to achieve something very similar by installing and maintaining your own protections, either as some sort of plugin inside your webhost's limited shared hosting package, or in a small-scale replica of Cloudflare by running your own separate VPS somewhere for the sole purpose of filtering and tunnelling traffic to your actual web host elsewhere. But this comes with the headache of learning how to do all that and get it working, and also you might need access to (paid) databases for converting ASNs into IP subnets or checking if an IP is already an identified proxy or a source of bad traffic, which Cloudflare offers internally due to its massive scale.
At the same time it is a good idea to not grow complacent that CF solves most of our problems and become dependent on it ("vendor lock-in") to the point where CF knows this and leverages its privileged position to start milking free clients for money. Lots of services did and do this; they start free until people get used to the convenience, then start charging the users in some way or another. It's a double win: only a minority will leave (which lowers the costs for the provider) and the captive bulk of them will just start paying.
So use CF for as long as it is in your advantage, but use effectively the time to learn how it works and think about a plan B if and when CF drops the announcement that they're changing their service conditions.
I mean, let's look at the recent scandal around Proton.
Context: Swiss foundation controlling a Swiss organization that offers privacy-focused services like e-mail, VPN and others. Not really that stellar in terms of services compared to other free e-mail or free VPN features, but the technical foundation is there and is perfectly usable, and it came with the promise of top level privacy and security that's shielded from foreign law enforcement agencies.
Surprise: The CEO and CTO revealed they are suffering from AI delusion, writing and enforcing an utopian "manifest" as internal policy, and going as far as monitoring employees about AI usage and organizing internal interviews with all employees to decide if they do use AI (and get to keep their job) or are reluctant in any way to blindly trust AI to vibe code (and will be sacked). This was leaked into the press that it's a toxic culture where the leadership is bullying employees for releasing well tested software, and proving that the CEO wants speed even if that undermines their promise of security and privacy that people wanted.
Consequence: Many paying clients were completely appalled and cancelled their subscriptions, Proton is now doing damage control for what seems to be just a temporary PR thing, but going into censoring the messages on the Proton subreddit and apparently coordinating an effort to get employees to post their "breaking my silence" on Reddit, supporting the CEO's position, that's hard to believe.
Lessons learned: many people who did become complacent with using Proton's free e-mail for privacy-focused communications learned the hard way that they don't really own those mailboxes and don't control the direction of Proton. Now it is a massive effort to go into all their other services and subscriptions and contacts to announce that they're changing their e-mail address to some other domain that they own and can move from hosting to hosting whenever, without the e-mail address ever changing.
It is a painful process that results directly from not having thought out the "transportability" aspect of their mailbox from one provider to another.
That's the same that can happen to us becoming too reliant on Cloudflare and not giving it a second thought. What's our alternative plan of action? How can we ensure that we can "transport" our needs quickly to some other solution?
Holy cow I really am turning into a proper prepper

Say that 10 times fast.