Goats feed on trees and shrubs whenever they have access to them. They often stand on their hind legs to reach the foliage. This behaviour is called ‘facultative bipedalism’.
Read more here.