The story goes like this:
thousands of years ago, a Jewish tribe used to live near a sea. All men of that tribe were fishermen, and they relied on hunting whales. The problem was the during week days, no whales came near the shore, but on the Shabbat, hundreds of whales came there. But no one could hunt the whales because they were forbidden to work on the Shabbat. The sad thing is that this happened everyweek. After several months, a group of men decided to hunt on the Shabbat. Their families tried to stop them, but they could not.
When the shabbat came, those men went to the shore, and started hunting whales. So God felt mad because they worked on the Shabbat, and turned them into apes and pigs.
This is how the jews became the "Sons of Apes and Pigs"