My cat loves being stuck in the closet room?

Why does my cat like being stuck in her basket in the closet room all day long even when its nice and sunny outside. she is pining to get in 24/7? what could be wrong with her. she is about 9 years old, in nice health, a bit overweight.
Answer
Shes trying to come out of the closet lol