Sometimes it is cheaper to buy a company than build the internal tool team you might have had to build from scratch anyway. Half acqui-hire, half knowing you've built something on-top of it and want it to stick around.
I also wouldn't be surprised if cloudflare wants to build this into their site-hosting capabilities.