Why? The purpose of those subsidies is to benefit all of us. Not to benefit Elon Musk. He's just the only one who stepped up to solve the problems for us.
California would've had to make that responsibility known up front. They chose not to do that.
And California directly benefitted from the money they spent. That benefit is electric vehicles in the hands of its population, which improves the state's pollution levels long-term.