Their litter box might be in there, so it could be a room that smells very familiar. Cats also probably know that when we are on the toilet, we are a captive audience — nowadays we are so busy and distracted that many cats are probably looking for an opportunity to have our undivided attention!