I think subconsciously that often the footballers brain, in haste, sees the goalkeeper himself as representing the goal ie it adds a focus and target to aiming at goal. This is why so many shots go straight at the goalkeeper.
Years ago goalkeepers used to hang a towel in the corner of the goal...