"Leaned behavior" to me means that they previously saw other, non-baboon, groups rob tourists in the same way, which seems unlikely?
This feels more like a situation where the baboons realized that "these humans have yummy stuff" followed by "hey, and this is how we can distract them in order to grab it"
But, well, semantics...