I mean I wouldn't say out of nowhere
Maybe a bit contrived but the carrot has been there, also it makes sense that the magic lesson that started this would be the thing that gives iruma the inspiration to end this conflict.
After all the point of the arc is that the many ears shouldn't have...