To say that love is a function of knowledge does not imply that knowledge produces love, only that you cannot get to feeling love without going through a process of building knowledge about the love object.
That is why a teen crush has little value—it is based on a fantasy of the beloved rather than learning about the full person.
As a medical doctor and lover of reason (and of God), Maimonides naturally gravitated toward tangible learning. He would not have thought that God is great, God is good withouotwithout knowing why that might be true.
Even the title translation, Book of Adoration (for Mishneh Torah), starts at learning (mishneh) and becomes love (adoration).