Mice are very agile and flexible. Since they are pretty lightweight, it isn't surprising that they can easily climb on the ceilings too.