https://en.wikipedia.org/wiki/The_Curious_Incident_of_the_Do...
Some things just work without worrying about how they work, and the scientific process is very important for these kinds of "discoveries" regardless of how obvious they look to us.
"As palm trees can be extremely high, this was a very perilous enterprise. Why did this worker even attempt this in a deserted garden will remain a mystery."
One possibility: some plants can be quite selective on when / under what conditions pollination is most likely to succeed.
Probably because fruit (+ seeds) follows, and a plant 'wants' those seeds to be distributed at the right time to maximize chance of offspring success.
Again: maybe such conditions were known, and gardener climbed the tree when the time was right. Which happened to be when no-one else was around.
Of course that's just 1 theory. Maybe gardener just didn't perceive it as dangerous.