Most probably a case of rusted lug nuts snapping. You're lucky there were no cars nearby or else you couldn't have avoided being hit. I check my nuts once a week.