I'm assuming the fence is crossing perpendicular to the drainage ditch and that it contains runoff from multiple lots and not just your property. If this is the case it is pretty standard. I have seen this enforced more and more in my area, mainly due to backyard and basement flooding resulting...