They are such intelligent animals. They have to stay busy. He was probably super bored and climbed out to see what there was to eat in another tank.