Why are goats often interpreted as a Masonic symbol

Why are goats often interpreted as a Masonic symbol? One of the most frequent ways of drawing a Freemason by religious people, in statues and illustrations, etc., is as a being that looks half human