The chimps were not dancing, or playing. They are clearly pissed. The "dance" and noises are ways to say "this is our territory, not yours, back off". Throwing the ball is an act of aggression, but since nobody took a clue he made it even clearer with poop.
For more sociable interactions between humans and other apes check this video ("Human, you have you baby! I'm going to show you mine!").