My RB terrier Sandy did this, I solved it either by leaving the trash under the sink or keeping the bathroom door closed so he couldn't get in. Nikka will do it periodically, since I can't predict when I just keep the bathroom door closed.