Since there are rather more lowland areas than there are mountains, goats could spread much further than they could during warmer times. When the Ice Ages ended, and the hot weather returned, they simply headed back up the mountains. But not, necessarily, the same mountains that they had previously come down from.
As a result, we now have quite a range of goat species across Asia, and, to some extent, Africa. After all, between (and after) the Ice Ages, each population was isolated from those in other ranges, and could develop on its own. Taking, at least for today, our definition of 'goat' to be "any species from the genus Capra", there are probably at least seven, and maybe eight or nine, wild species of goat. The wild goat itself is one, and the markhor, with its bizarre corkscrew horns, is another. Most of the others are collectively known as "ibexes".