Which is a fine option, but it should be something agreed to by both parties. You can't just hand over a cost like that, and if you buy property with some kind of agreement this choice is baked into the original price. It makes perfect sense for the government to uphold agreements it has made.
Secondly - if they did own the fence line, it'd be on the government to come and fix it when one of their trees breaks it, surely?