The water does not have to fill the pipe, it could simply fill a low spot in the ditch, then seep into the pipe and voila.
Look I have a kind of gross way to describe heat loss to potential customers that they understand without getting scientific!
Put 6 people in a pool or pond, evenly spaced apart, we have all been there, now one person pees in the pool, it doesn't take long before everybody knows it, that's one pint of pee in thousands of gallons of water.
Now use that same thought regarding a pint of water inside your pipe casing and up against your pipe, your water level in the ditch comes up to the pipe and transfers the heat into the underground water in the ditch, unless you have very good drainage out of your ditch you will be constantly warming all the water within the ground. The only way to stop this from happening for sure is a very strong outer casing and closed cell foam insulation!