The security guarantees for Ukraine stem from a 1994 agreement that assured some ex-USSR countries that they could safely give up their nuclear stockpile in return for guarantees that their sovereignty would be protected.
Europe supports Ukraine because it is in Europe, European countries were part of that agreement and European countries do not trust Russia. Not counting Belarus, there's 7 countries with direct borders to Russia, 4 of which used to be part of the USSR, 1 of which is being invaded and the other 3 wonder if they're next.
Whereas Taiwan is not in Europe and doesn't have any historical agreements with European countries.
Canada & Australia have cultural, racial and historical ties to Europe, so it is understandable they often align with Europe.
[1] https://www.oscepa.org/en/news-a-media/press-releases/press-...