It may seem as though Mildred is trying to get out of her cage, but in reality what she us doing a calisthenics.
I think this particular exercise is called monkey bars, which is fun and dangerous as she falls to the bottom when the edge of the tank is reached. The fun part is the rush from being airborne.