Who knows?
Maybe SpongeBob thought Gary would hate it and retreat to get in the bath, even though that plan failed.
What do you think?