That’s not agile’s fault. That’s the orgs fault.
We used to have a few days set aside regularly to fix things that would never get prioritised.