So, this is all about the ‘payable’ method, which means it is triggered by the native asset of the virtual machine.
If you look closely you’ll see there is a default anonymous function with ‘payable’ accessor method which calls the deposit() method