The driver might have been angry that you were being unsafe and he didn’t want to see you hurt or be the one to hurt you.
I can’t tell you how many times I’ve been driving down a unlit road and had to slam on the brakes to avoid hitting someone who was jaywalking and wearing dark clothes. Or seeing kids driving on the road on bikes/e-bikes and being unsafe in traffic.
Some of us just don’t want to see you hurt or be the one to hurt you.