The SEC are there to protect the integrity of the market. Things like fraudulent information, insider trading, etc are corrosive to the mechanisms which a well functioning market requires.
Maybe there should be a bias towards those who benefit from the continuing viability of the company and maybe not.
But in this case, I suggest it's moot just because the damage to longs appeared to be significantly greater than the damage to shorts and it doesn't counterbalance anyway.
The penalties seem arbitrary to me. Transferring several million (or billion) dollars around as they are doing doesn't seem to rectify in any way the purported injustice to shorts. The whole episode drove down the stock quite a bit, so longs have suffered a lot, shorts have suffered somewhat, and the government collected a commission. Nobody has had wrongs rectified, and it's unknown whether prying Musk away from Tesla is a net gain.
Personally, I was neither long nor short TSLA at the time of the tweet, and I don't think short sellers are inherently illegitimate. However, I think the existence of a public company generally serves a social purpose and long investors are not quite symmetric with short investors. If, in general, there is a dispute where you can apply long investors' concept of fairness, or you can apply short investors' concept of fairness, it kind of makes sense that what damages the company less is probably the right answer, barring something like Theranos that shouldn't exist at all.
Of course, it might be that his tweets are being considered in the larger context of recent irresponsible tweeting by those in power, and thus from the perspective of enforcement it looks like a rising tide.
By analogy, if you borrow a car, and your interests seriously conflict with the owner, then probably for the good of society, and the rental market, there needs to be protection of the owner's rights.
I don't think it follows that what harms longs benefits the shorts that were harmed by Musk's tweets. So there is no benefit to compare to the harm done by the enforcement.
Unless you think that reducing Musk's role in the company will lead to the downfall of the company and that is a good thing because someone will profit, which seems like a weird idea to me.