Generalized inflation affects everything. Energy prices have gone up, labor prices have gone up.
The people who sell the barbed wire and wooden posts presumably like to be able to eat, so they need to raise their prices to be able to afford groceries, etc.