You’re supposed to wash your hands after going to the bathroom. I don’t think of it as optional, I think of it as “a must.” The kids in my daughter’s nursery school learned it from as soon as they were going to the bathroom.
I will wash my hands before going to the bathroom only if I feel my hands are dirty, like if I am in the city and was touching public transportation and stuff like that, or if I was eating and have food on my hands, and don’t want to get my clothes dirty.