This goes along with another famous teaching of Jesus about money: “No one can serve two masters; for either he will hate the one and love the other, or he will be devoted to one and despise the other. You cannot serve God and wealth.” (Matthew 6:24)
The rich generally have a master they are unwilling to give up. It is money. They think they are the master of their money, but their money is their master.
Yet by God's grace, He can even change the heart of the rich to love Him instead of being devoted to money. Praise God for that. It is indeed a miracle. As crazy as a camel going through the eye of a needle.