In the passage we see that the Queen of Sheba recognized that God had blessed Solomon not only with great wealth, but also with an unusual kind of wisdom that could only have come from God. Is that one of the reasons that God had blessed Solomon with that wisdom? After all, without that wisdom, the Queen would never have learned of the true God.