There need be no poor/you will always have poor.
The lord loves us and provides enough for mankind. Society will always have inequality, but we are to actively minimise it.
Here are the rules by which all debts were to be cancelled every 7 years. God wanted all his people to do well, not a stratified society.
Beyond that, they are told to live by the spirit of being an open-handed and generous society. So to exploit the rules by being less generous because you know the 7th year approaches is a sin.
And servants are to be allowed the choice to be free. They are all descended from slaves, their society cannot support involuntary slavery. Think how that must have affected the life of servants every day, knowing that they could be free after 7 years.
God’s vision of society is just and generous. We were all slaves. All we have comes from him, we aren’t to hoard it or lord it.