The word hedge is used in two quite different contexts:
In gardening and agriculture, a hedge or hedgerow is a boundary formed by growing plants so that their limbs intertwine. This is the original meaning of the word.
In gambling and finance, a hedge is a bet or investment taken so as to reduce your loss if another bet or investment turns out unfavourably