sounds to me like the would be robber was bluffing and the would be victim got lucky as hell when he called that bluff.
Given how vicious criminals have been becoming of late, he probably (rightly) figured he had nothing to lose by doing so.