The outside of the bulb is brown at the top, but the cloves look and feel normal when peeled.
Is this safe to eat? What is the reason for the brown colour?
Your garlic is fine, some discoloration of the outside layers is normal. When garlic is lifted out of the ground it's covered in dirt and the outer layers are brown. Garlic is then cured (it's just letting it dry for a few weeks, there's no salt or chemicals involved) which prepares it for long term storage, during this process the garlic skin dries. Often the outer layers are peeled off to make the garlic look nicer, and depending on the variety these are usually white or white with purple.
The more layers you peel off the less protection garlic has for long-term storage, at some point you have to stop peeling or it won't last. In the case of your garlic they stopped peeling when there was still a bit of brown, which was the right thing to do. It's just appearance.
Garlic can look all brown and gnarly and still be absolutely fine, it's the condition of the cloves once peeled which matters. If the cloves themselves are discolored, soft or look rotten then they aren't good to eat.
Dirt, or oxidation would explain the brown color (dirt if it's always been this way, oxidation if it's changed. Garlic grows in the dirt, and if it's not harvested early enough to have plenty of dirty leaves to strip off the bulb while clean leaves remain below them, it may well be stained with dirt. Or if it simply wasn't stripped of the outer leaves after harvest for that purpose.)
There's nothing wrong with that garlic from this picture. It should be perfectly safe to eat.