Why can a spider wander around on a vertical smooth tiled wall without any problems but can't make it up a sloped side of a bath tub?
Only thing I can think of is on the tiled surface it is actually using a silk thread you cannot see. Whereas in the bath it is as likely as not that it has fallen in without laying down a thread to use as a stabilising/climbing aid.