If there are from opposites sexes, there is certainly an egoistical reason for the rat to free the other.
If they are not, rats are very sociable. They need close contact with other rats.
It also looks like the opener rat is also very curious and wants to enter the cage too to know how it feels inside.