Why is French spelling not phonetic?

It’s standardized too. But that makes even less sense because why?
2 answers 2