Veins have valves because the blood has to flow through the heart without flowing back because blood has to fight the force of gravity by flowing up the leg.
I hope that helps!
I hope that helps!