The boogeyman story likely emerged from our deep - seated fears as humans. It might have been a way for ancient people to cope with the unknown and the things that go bump in the night. In many traditions, the boogeyman is this shadowy figure that lurks in the dark corners. It could have been influenced by superstitions about evil spirits, and as generations passed, the story got passed down, changing a bit in each retelling.
Well, the origin of the boogeyman story is really not that clear - cut. It seems to be a combination of different cultural fears. It could have started as a way for parents to get their kids to go to bed on time. You know, if you don't go to sleep, the boogeyman will get you! And it might have evolved over time as different cultures shared and added to the idea.