We've seen goats in argan trees in Morocco many times. If you went to photograph them the joke was always "don't forget to tip the lad who put them up there". I'm not convinced it's just a scam, though. Firstly you can see goats in trees as you drive where there aren't any people and it is clearly not a tourist stop - probably not even anywhere to park. Secondly I don't think it would be very easy picking up a goat and putting it in a tree. There would be a lot of injured goats - and lads! Much of Morocco is very arid there is very little for the goats to eat apart from possibly a small amount of very dry grass.
Tony