In any timeframe there are people who rise by luck with timing and opportunity. Musk is that guy. He bet on EVs just before massive subsidies became available for them and then got lucky as the incumbent companies mostly did nothing.
He bet on space just before the US lost its only human capable system and again hovered by taxpayer funds and contracts.
All again in an era of free money post 2008.
As for the products? Teslas are some of them worst built cars ever made and Tesla produced vehicles for segments Americans don’t want. Minivans, sedans and limousines.
Space X meanwhile makes rockets which are a step back from the Shuttle in terms of capability and which will now require 6-8 launches what Apollo could do in 1. All built on lies about building a Mars capable craft which will carry 100 people - a feat Starship will never attain as it’s too small.
Musk has had an incredible string of luck but makes awful decisions, has no design sense and pretends to be a genius.
He’s very average indeed. His politics and attitudes are like a lot of gamers because that’s all he is.