I don't think this is recent. I had a relative who raised octopi for sale in his garage in the 1970's.
His most time-consuming task was that he had to play with the octopi every day to keep their brains engaged or they'd get depressed and sad and die.
One of their favorite games was "jar." Where he would put various jars and other vessels in their tanks and they would figure out how to open and close them.
Eventually they would love the game enough that they would unscrew a jar, swim inside, and then screw it closed again with themselves inside. Then they'd look(?) at each other in the other jars and switch jars and basically frolic in the containers.
It was really odd.