You bring up an interesting point that they offer it for free to search engines. Didn't it used to be against the rules of most search engines to "cloak" your content by serving one thing to the spiders and another to the general public?
Edit: Found it. It's still against their rules. <https://developers.google.com/search/docs/advanced/guideline...>