Another way to say "washing clothes is for removing odors." is "Removing odors is one of the functions of washing clothes."