Many states (or all the ones I have lived in anyway) have regular, mandatory inspections.
Virginia: https://vsp.virginia.gov/safety-and-enforcement/vehicle-safe...
Massachusetts: https://www.mavehiclecheck.com/motorists-basicinfo#Safety
Those are the only two states I've lived in. I don't get why so much of the country doesn't do these; it seems the Northeast of the US almost all require periodic safety inspections and the western US does not.
If I had a hunch, income plays a part. Flyover states are poor, that means older and more beat up cars. Older cars (out of warranty let's say) are more costly to fix. States have to balance "people need a car to make money" with "people need money to drive safe cars".