I Don’t Understand CloudFlare

Protecting your website can come in many flavors. I’ve always learned towards doing as much on the server (vs in the ‘app’), but the new trend of external services that speed your site up and protect you confuse me.