Erie Canal has two heights . One portion is upto 566 Feet and one side 365 Feet from sea level. So locks are constructed to controll the flow and for smooth sailing of Boats.
Locks on canals exist because you need level water to be able to boat, sail or barge from one point to another. Unlike a road, a river or a canal cannot have a hill. Hills on water are called rapids...