xoogler here, one of my teams implemented cast functionality in google photos. IIRC, this was definitely not the reason; the protocol was initially very limited and it was changed to make it more secure while also adding capabilities.
There's a separate protocol app → Google and Google → Chromecast. Or at least, there was, after countless changes, I gave up attempting to build a raspberry pi with chromecast support.
And of course, Chromecast replaced the dlna protocols and Miracast support in Android. I lost the ability to stream the screen on my nexus devices to open source receivers back then, because Google had to go proprietary.