Islam didn't outlaw slavery but instead restricted and regulated it, and the wisdom and reasoning behind that is with Allah ﷻ. Submission and obedience to Allah ﷻ, our Creator and Owner, is not contingent upon understanding the wisdom behind His Laws and Commandments. If you understand some of its wisdom it's a Mercy from Him. People who question and doubt forget that the relationship between ourselves and Allah ﷻ is one of Master and slave; if we know how Great and Mighty Allah ﷻ is, who created everything in existence and controls it, and how lowly and feeble we are, a creation among many who are entirely dependent upon Him, then we would understand the absurdity of thinking we are in a position to question Him.
Remember the example of submission we were given was that of Ibrahim عليه السلام who was commanded to sacrifice his only son and he immediately submitted. He didn't question or doubt or falter. This is understanding the meaning of true submission.
Do you truly believe in Allah ﷻ and the message the Prophet ﷺ came with? Then why would you not submit to Allah ﷻ whose knowledge is all encompassing and who created you and your limited intellect; who taught humans right from wrong and commanded justice and will hold you to account for it? How arrogant (and extremely ignorant) is it to assume your own knowledge and sense of justice is superior?
Ultimately, these doubts and questions come down to a deficiency in Aqeedah and not knowing Who Allah ﷻ is.
لَا يُسْـَٔلُ عَمَّا يَفْعَلُ وَهُمْ يُسْـَٔلُونَ
He cannot be questioned about what He does, but they will ˹all˺ be questioned.
[Al-Anbiyaa' 21:23]
Remember the example of submission we were given was that of Ibrahim عليه السلام who was commanded to sacrifice his only son and he immediately submitted. He didn't question or doubt or falter. This is understanding the meaning of true submission.
إِذْ قَالَ لَهُۥ رَبُّهُۥٓ أَسْلِمْ ۖ قَالَ أَسْلَمْتُ لِرَبِّ ٱلْعَـٰلَمِينَ
When his Lord ordered him, “Submit ˹to My Will˺,” he responded, “I submit to the Lord of all worlds.”
[Al-Baqarah 2:131]
Do you truly believe in Allah ﷻ and the message the Prophet ﷺ came with? Then why would you not submit to Allah ﷻ whose knowledge is all encompassing and who created you and your limited intellect; who taught humans right from wrong and commanded justice and will hold you to account for it? How arrogant (and extremely ignorant) is it to assume your own knowledge and sense of justice is superior?
Ultimately, these doubts and questions come down to a deficiency in Aqeedah and not knowing Who Allah ﷻ is.