There could be a hole somewhere in one of your pipes underground. Rates and snakes live below the surface, so this is one avenue of easy access for those vermin
If you live in an area with a one-way sewer system, you might be more inclined to seeing some unwelcome animals in your toilet. One way to deal with these unwelcome guests is by installing a one-way non-return valve.