Many of them use solutions like LexisNexis Risk Solutions (which is like a 3rd party API that can return this data). How LNRS gets the data, I'm not sure.
For example, insurers also get data for stolen vehicles since it affects claims. I know this because in a previous (local government) job, I literally sat on calls about building an integration where we sent license plates of stolen cars (officially reported stolen to the police), if we wrote parking tickets for those cars, since we (another local gov agency) spotted the stolen car.
To me, even though I have strong feelings against privacy and surveillance, this felt like a totally pragmatic (and laser focused, it only affect cars that were currently designated stolen) use of the data.
I assume other states are similar
If you got a speeding ticket on week 10 of the year there is unlikely to be any increase on your insurance on week 35.
Like I said this was my perhaps incorrect understanding of how it works here in Canada.