It's all about respect, the guy did not respect you enough not to steal your money, even if he returned it indirectly.
In my early days in the hobby I did an incall where the girl ask me for the money at the start of the session and then proceeded to put the money in the drawer next to the bed...