Classically, a phallic representation can disrupt a curse or evil eye. After all, how can you maintain an evil eye when you see a big honking cock in your field of view? It’s like a bad vibe disrupter.
Read more about the “fascinating” magic of big fake dicks in antiquity: https://en.wikipedia.org/wiki/Fascinus