It was likely an infertile egg. Females will sometimes eat them to recycle the nutrients. Fertile aggs are usually buried in the corners of the enclosure or near the base of a plant.