The primary cause of inflammatory polyps is chronic inflammation of the gastrointestinal tract. Conditions like ulcerative colitis and Crohn's disease lead to repeated cycles of inflammation and healing, which can result in the formation of these polyps. Other causes may include infections, ischemia, or previous surgical procedures that have led to localized inflammation.