Al-Khwarizmi was Persian, not Arab. Though he did produce much of his work in Arabic which might cause the confusion.
(The context being - Arabic was associated with precision, Persian with poetry)
I’m oversimplifying and likely misquoting here so please don’t take that at a face value and put my in historical context. (I love Persian poetry, esp. early New Persian, which I find easier to understand than its later stages; I used to translate Middle Persian on occasion, perhaps because my Arabic is non-existent at this stage).
And actually I think arabic is more suitable for poetry than persian. It is more about it being the language of quran