One of the struggles with researching octopus intelligence is that they’re basically untrainable. They’ll do what you want them to if they’re interested but it’s quite difficult to get them to be consistently interested.
In other words, it was probably fun for the octopus too.