A lot of mythology originates from someone's dad or older brother or uncle messing with them.
Let's examine the myth that you'll find a pot of gold at the end of a rainbow. There isn't an end to a rainbow, someone was messing with a kid and it got passed on. It's like sending the new kid at work to go down to the basement or go ask for a long weight.