Apples and pears grow on trees. Goats sometimes too.
Goats prefer to eat juicy grass. But if there isn't any, they get creative. There is not much grass to be grazed in the dry areas of Morocco. Trees do grow there. Fortunately, goats are good climbers. So they clamber into the trees to eat the green leaves. Sometimes with half the herd together.
Do goats grow on trees? Yes, actually they do. Because those juicy green leaves help a lot of little goats grow up.