It’s merely a custom or sign of piety: “Cover your head, so that the reverence of Heaven be upon you” (Shabbat 156b).
Ket awan ti naganenyo ti amayo itoy rabaw ti daga; ta maymaysa ti Amayo, isu nga adda sadi langit.”—Mateo 23:1-10, Ti Biblia, PBS.