They don’t just randomly brake for no reason.
If both drivers only had basic insurance covering damages that aren't your fault, he got nothing and the other driver got paid for having his car damaged by a reckless driver that smashed into his car.
How does your friend even know it was without reason? Maybe a kitten or a squirrel crossed the road.