It could be any number of things, parasites, infection, injury - however, most fatal problems are activated or encouraged by stress - like incorrect environment.
Without a more detailed description of the cage, and the circumstances surrounding this incident, there is no way to tell you for sure what the cause was.