Also, I doubt that Google wanted to destroy XMPP. They simply needed a chat then noticed it’s crap for mobile devices. They wanted to offer their users seemless migration to the new proprietary protocol.
I was sad that Google stopped to use an official standard, but there are many better free options left.
Programs are mathematical proofs. If maths cannot be patented, software can’t be, either.