Because the Obamacare mandate is applied to persons just for being alive.
Whereas with car insurance, technically, one still has a choice in the matter, which is, don't drive and there's no mandate to purchase car insurance.
Also, mandatory auto insurance is legislated at the state level, where there is more constitutional authority for such actions.