The Kaiser proposed a Russian-German alliance in 1905. He was largely the driving force in forging the Ottoman alliance in 1914. He even proposed French and German cooperation against Britain in 1910. And he routinely prodded the British on the subject. In his mind, spur of the moment alliances were a thing, and one that could actually work. He actually got the Tsar to sign the Russian one in private - it's just his advisers in St Petersburg balked. Heck, if the Goeben hadn't sailed off and bombarded Russia, even the Ottomans wouldn't have come around.
Alliances are not and can not be the work of a moment or even of a year. They are long-term constructs that require gradually building relationships and trust. King Edward understood this, and did it expertly in France and Russia. Kaiser Wilhelm did not.
It's also funny to imagine him offering the Chinese an alliance in 1907, when just a few years earlier he had sung a different tune while sending troops to China:
"You know full well that you are to fight against a cunning, brave, well-armed, and cruel enemy. When you encounter him, know this: no quarter will be given. Prisoners will not be taken. Exercise your arms such that for a thousand years no Chinese will dare to look cross-eyed at a German."
Edit: Whoops. That was the official paper version of the speech. He embellished a bit when he actually read it:
"Should you encounter the enemy, he will be defeated! No quarter will be given! Prisoners will not be taken! Whoever falls into your hands is forfeited. Just as a thousand years ago the Huns under their King Attila made a name for themselves, one that even today makes them seem mighty in history and legend, may the name German be affirmed by you in such a way in China that no Chinese will ever again dare to look cross-eyed at a German."