Terrible planning of legacy systems (and some current ones) from people who never gave any thought to security is how we got here. The value is usually negligible.
It would be extremely expensive to replace all infrastructure ad once, so most will be upgraded as we go along, creating new problems but also hopefully mitigating older bugs.