The taboo probably originated in environmental factors: Pigs were expensive to feed and produced no materials for clothing. However, because some people were still tempted to squander resources by raising pigs, the prohibition became culture and was incorporated into both Judaic and Islamic religious texts.