My bet would be that it wasn't a solid hookup. But, like ET Fish says, it could have been any number of reasons. I've been using weedless jigheads for decades, and once stuck I don't remember losing many fish in all that time.

How soon after you set the hook did the fish get off ?? That may give us some indication of why/how it got loose.