That's human logic. That makes sense. But God's love is so immense and so infinite that humanly speaking it doesn't make sense. It cannot make sense. It's not logical, and it should not be logical.
Love never follows logic.
God got nothing out of creating me, nothing. God did not expect anything out of me. He didn't need the universe. It made absolutely no difference to God whether there would be a universe or whether there would be a you or a me. So if God still created and created out of love, then that love is absolutely selfless.