I constantly ask, 'why in s**t does a goat do that?'
First of all, they can. Second (not sure about the species of goat or geographic location) some goats risk life and limb to lick lichens that make them a little high. How they get back up when they're tipsy is their problem. Other goats, in other locations, risk life and limb to lick limestone, which has salt.
Maybe some are just Evel Kneivel goats.
BTW, re predators, snow leopards get to some mighty precarious places for a meal.