Why is car insurance mandatory but not health insurance?

Say you have mandatory car insurance but not health insurance and you get in a car accident and get injured; your mandatory car insurance covers your car but what about you?