When you open the refrigerator door you make the entire room the container.
Now the refrigerator has to pump the heat out of the room into the room in order to try to cool said room.
As you can imagine this is kind of tough (impossible) and it has to work harder.
Working harder means that the motor runs harder and produces excess heat, heating the room.