Throwing a pie in a person's face has been a staple of film comedy since Ben Turpin received one in Mr. Flip in 1909, and is often associated with clowns in popular culture.
Mr. Flip hit Ben Turpin with a pie in his face in 1909. It would become a normal part of comedy from that moment onward. Clowns are also known for hitting people in the face with pies.