Salam. Please read this and ponder and think about it. Allah سُبْحَانَهُ وَ تَعَالَى wouldn't just make you wear a cloth over your head for no reason, he would obviously do it for you to benefit from it.
“O Muhammad ask them about the town which stood by the sea; when they exceeded the limits of the Sabbath, when their fish came to them on the day of their Sabbath on the surface of the sea, and on the day on which they do not keep the Sabbath, they did not came to them We try them because they transgressed.” (7:163) “And when a party of them said, why do you admonish a people whom Allah would destroy and whom Allah would chastise with a severe chastisement? They said, to be free from blame before your Lord and that happily they may guard (against evil)” (7:164) “So when they neglected what they had been reminded of, we delivered those who forbade evil and we overtook those who were unjust with an evil chastisement.” “Therefore when they revoltingly persisted in what they had been forbidden, we said to them; Be (as) apes, despised and hated. (7:165)