Christianity says that "God is love" (1 John 4:8) — not that God performs acts of love, not that God chooses to be loving, but that love is constitutive of what God is. This is a metaphysical claim about the nature of God, not merely a description of his behavior.
For this claim to be true, love must have been an eternal feature of God's being — before creation, before there was anything outside of God to love. On a strictly unitarian monotheism (one God, one person), this is impossible. A single person without relationship cannot be essentially loving — love requires an object, and before creation, a unitarian God has no object. He can be powerful, wise, and self-sufficient — but not essentially loving. Love would be something he begins doing when he creates someone to love, not something he has always been.
The Trinity resolves this. The Father has eternally loved the Son. The Son has eternally loved the Father. The Spirit is the bond and expression of that eternal mutual love. When God created the universe, he was not beginning to love — he was extending into creation a love that had always already existed within his own eternal being. This is why John can say "God is love" as a metaphysical statement rather than merely a behavioral one.
Islam's God is described as al-Wadud (the Loving) and al-Rahman (the Most Merciful). But in Islamic theology, these are descriptions of how he acts toward creation, not descriptions of what he is in his essential nature independent of creation. Before creation, Allah is not loving in any active sense — there is no one to love. Love is something he begins when he creates creatures to receive it. This is a significantly different kind of God — one who chooses to love rather than one who is love.