Those are time of use rates, so I don't believe it's detecting your car, but just incentivizing you to schedule your charging at the cheapest time.
This is doubly true in California, where almost no utility will sell you power at low rates during peak demand hours.
I'm not sure if it comes from state funding, or profit, but they want to incentivize charging at off peak hours.
https://www.sdge.com/residential/pricing-plans/about-our-pri...
I'm not sure how they detect it, but it's reliable. My naive assumption is that they detect the sustained 7kW increase, in the wee-hours. I haven't attempted to trick it.