The account of Genesis recorded the creation of time and space. It was passed down orally for thousands of years before Moses recorded it. The creation of time and space from nothing has been proven true. So ancient man knew 6000 years before science knew that there was a beginning.
No, it is about the creation of the concept of heaven and earth, a world above and the world below, separated by the establishment of divine light, spoken into existence through law which teaches people to distinguish between clean and unclean, good and evil, true and false, right and wrong, life and death.
So what happens to people who eat ham, for example?
What happens to people who eat ham? They enjoy it.
Swine are unclean creatures because they do not ruminate. Their flesh defiles and contaminates the mind.
This is just a metaphorical reference to people who do not ruminate, think deeply, and swallow garbage without thinking.
If you swallow the teachings of people who do not think deeply it will defile and contaminate your mind and you will become an unclean creature that cannot ruminate.
Here is the wisdom of God. This is my flesh.