Drainage, it was built in a swamp so they need to dig out canals so the road doesn't just sink into the mud.
Some sections of highway or rail, or rail later converted to highway were shallow lakes where they'd run a dredger through to create enough raised land for a road, directly through the lake.