How many times do we see a penalty given for the goalkeeper missing the ball and punching the attacker in the head?
I can’t remember any...
Certainly not in the way that this actually played out. Keeper was committed and it did not affect the header which the attacker got in.
It is an imposiibilty for a player to stop when he is in mid air as the keeper was.
But the same is true of a tackle which brings a player down rather than wins the ball because their opponent got there first. If the tackler / puncher is committed and unable to withdraw when they are beaten to the ball by their opponent, they have been careless at best and possibly reckless. Either way it is a foul.