Some of the cats at my parents house do this, if someone forgets to put down the lid.

I always close the lid of my toilet because I use those self cleaning tabs that make the water blue and I'm sure that can't be good for either my dog or cat to drink.