This is an interesting one! I think the short answer is: yes, there are some circumstances where your HOA (and insurance) might be liable for a loss involving these carts.
For example, from my own Association's liability insurance, the key risk-transfer sentence is:
"We will pay those sums that the insured becomes legally obligated to pay as damages because of "bodily injury", "property damage" or "personal and advertising injury" to which this insurance applies."
"becomes legally obligated" basically means, "someone sues you and they win".
So, a hypothetical example: Tommy is 15 years old and has no drivers license. While driving a golf cart, he swerves, goes up on the sidewalk, and hits Susie. Susie is injured. Susie sues the HOA, and argues that the HOA is responsible for the crash because they allow unlicensed drivers to use golf carts on its private roads. Could Susie win this suit? Its possible.
But does that mean you should ban golf carts? Probably not. I think they are safer overall than gas cars, and provide some real convenience and benefits. My mother lives in a neighborhood where many families have started keeping golf carts, and using them to run around between their houses and the pool/tennis club, the park, and the elementary school (which is "within" the neighborhood, no need to go out on main roads). Most people in the neighborhood like the carts. They are quieter than cars, slower than cars (slower = safer), and they let teenagers who don't have drivers licenses yet (eg 12 ~15 years) have a bit of independence, without parents needing to chauffeur for everything.
In my mother's neighborhood, these are public roads, so their HOA has no liability for anything that happens on them. The local police could, in theory, ticket these people for driving unregistered vehicles with no license. But so far they have not. I think they also see the benefits of safety.