Because, when they knew God, they glorified him not as God, neither were thankful; but became vain in their imaginations, and their foolish hearts were darkened.
All Commentaries on Romans 1:21 Go To Romans 1
Augustine of Hippo
AD 430
If they had given thanks to God who gave this wisdom, they would not have claimed any credit for their own ideas. Therefore they were given over by the Lord to the desires of their own hearts, and did improper things.