Why veins contain valves.

To prevent the backflow of blood.