Lots of powerful people are unpleasant, but Musk additionally got involved in politics in a very visible way at a very partisan, polarising time in American history. He didn't attract as much hate before 2024.
As for SpaceX I'm not sure what you mean seeing as how the government is easily its largest customer...