If memory serves me correctly, those capacitors help provide a voltage boost to the motor, in order to help the motor quickly build up speed.
I believe washers have capacitors on their motors - just not dainty orange smarties.
Possibly, or they could just be noise removal.