Musk is part of Twitters alt-right pipeline, and this pipeline is contrarian to western trends by default. West supporting Ukraine makes them support Russia as default, not because they like Russia (only fringe alt-righters think Russia is better place to live than the West).
I don’t think he is a vatnik as some here have said, but one of the memes going around the bubble is „think for yourself, question everything”. This makes him think that Russian aggression has some justification simply because „things are never what they seem” or „things are never black and white”.