Being rich enables you to return books as late as you want because the fine means little to you, and certainly not whether you can eat or pay the rent.
People aren't perfect, they make mistakes. The difference is that a well off person can afford to correct that mistake by paying the fine, while a poor person is given an incentive to not do so because they can't afford it.