Clever dog, quite the problem-solver.
I have a cat like that; I can't leave anything in a container on the counter.
She knows knocking it off the counter onto the floor may open it.