"The agile methodology" doesn't really make claims about what a specific group of people need to do.
It's a tool/methodology that can help you increase quality.
If quality isn't a priority, a methodology that helps to better align your work with your priorities isn't going to improve quality.
Quality got worse.
In this scenario it's the fault of agile, as the reason for doing agile was to increase quality.