Rusting is commonly caused by repeated exposure to water and age. If you see any rust on your washing machine hoses, use a WD40 solution or any antirust solution, followed by cleaning them using a damp cloth. You should also try to keep your washing machine hoses as dry as possible when not in use.