Avenging the death of his gelatinous brethren, eh?
“Delighting in existence O monks, are gods and men; they are attached to existence. they revel in existence. When the Dhamma for the cessation of existence is being preached to them, their minds do not leap towards it, do not get pleased with it, do not get settled in it, do not find confidence in it. That is how, monks, some lag behind … (It. p 43)”
I get the impression that he/she had been observing for a while beforehand, from a distance, "ok...so the humans go in via that door, and come out again with sweet-smelling goods on them...ah, I see - you open the door from that side...right." The bear seemed quite familiar with the correct operation of that door.