Untrue as a blanket statement, it depends on the state. With netmetering excess solar power production is either paid for or credited at the wholesale rate.
Was specifically speaking about Commiefornia. Other states have different rules/regs as you observed. Friends who are still stuck there lament about the Solar rules that preclude them from storing energy (batteries) and excess that goes to the grid but is not compensated.