One of the SEC's core jobs is to protect investors from corporate officers who lie to them about the state of the public companies that they are running. This is precisely what Elon Musk did.
He also spent ~12 years in prison (Though that was a separate action. The SEC can't send people to prison).