The temple was heated via alien technology that we cannot possibly understand given our inferior intellects. I believe the queen was used originally to breed the first aliens they hunted and killed and then was put into some sort of hibernation until the next hunt.
I don't recall how the queen escaped, but I don't think they had intended for everything to get out of hand.