The association of the “goat” with Freemasonry and the origins of the somewhat derogatory term of reference to describe Freemasons as “riding the goat” are like many aspects of the history of speculative masonry - they are lost in the mist of time.
Nonetheless, many varied and plausible origins have been suggested over the years.