I don't think that this little frog came in through cracks in the foundation. He was in the 2nd floor bathroom and there are two bathrooms on the first floor. I guess he could have been picky.
Tree frogs can leap 18" to 24" feet at a time. I saw one do it, so jumping onto/into the toilet is very possible.