California is building desal plants, Look at the one built in Carlsbad, CA that went online in 2015.
The problem is price. From the wiki[1]:
> "The cost of water from the plant will be $100 to $200 more per acre-foot than recycled water (approximately 0.045 cents per gallon), $1,000 to $1,100 more than reservoir water (approx. 0.32 cents per gallon), but $100 to $200 less than importing water from outside the county. As of April 2015, San Diego County imported 90% of its water."
Considering SD imports so much water, this is a big win. But still, this one plant cost nearly $1b to complete, and only provides 7% of the potable water for San Diego County. It's a non-trivial cost to use Desal water vs recycling efforts and loss prevention from reservoirs.
Edit: 1- https://en.wikipedia.org/wiki/Claude_%22Bud%22_Lewis_Carlsba...
2- https://www.nytimes.com/2021/10/29/us/san-diego-drinking-wat...