The rat learns to open the other problem boxes shown in the photographs in this same hit-and-miss fashion. In Box II, he has first; to bite the string in two before he can knock up the latch (he never unties the string)! In Box III, the animal must walk up an inclined plane until the increasing tension on the string causes the latch holding the door in place to rise from its socket.
The way the rat learns how to open the boxes by "trial and error" reminds me of how us as humans learn from our mistakes. I believe it is really interesting how we learn from mistakes and this can be seen in animals as well.