The lugs being loose or coming loose would have provided a warning because you would have felt the wheel moving around on the lugs before it actually came off, at least I would think so. Having all of the lugs shear off like that is due to over tightening them. Whoever was responsible for tightening the lugs the final time before they sheared is who is responsible for this issue.