A quick Kagi search revealed that this checks if the user is a simulated user in for stress tests:
https://developer.android.com/studio/test/other-testing-tool...
My guess is that the name shares its etymology with other Monkey references in tech, like Chaos Monkey. Where a being that has no understanding of the purpose of anything in the environment is given access to the environment and allowed to wreak havoc as a form of resilience testing.
This monkey appears to generate system events and user input events in a pseudo-random (deterministic) way to help with fuzzy-like testing of an app.