Beliefs and customs were all created by humans. Sometimes they were created as a way to "control" the general populace, sometimes they were created out of hope for a better life, sometimes they were created to comfort/support others in the face of adversity, sometimes they were created because we want to believe that there is something out there far bigger than us....
To answer your question - they have a purpose, but they could also be used to control our behavior
RE: What if There is no Meaning of Anything