That’s just not true. Apple actively works to prevent jailbreaks and there are often multi-year periods where no publicly released jailbreak exists for particular phones. When one does appear, Apple patches it as quickly as possible—for good reason I should add because jailbreaks work by exploiting security vulnerabilities.