Why did God create man knowing that man (the majority of men to date) would reject him and his ways and the suffering that this would bring to the world from the beginning until now?

We are not told God's precise reasons for this, however, Romans 8:18-25 does give us a few clues:
I consider that our present sufferings are not worth comparing with the glory that will be revealed in us. The creation waits in eager expectation for the sons of God to be revealed. For the creation was subjected to frustration, not by its own choice, but by the will of the one who subjected it, in hope that the creation itself will be liberated from its bondage to decay and brought into the glorious freedom of the children of God.
We know that the whole creation has been groaning as in the pains of childbirth right up to the present time. Not only so, but we ourselves, who have the firstfruits of the Spirit, groan inwardly as we wait eagerly for our adoption as sons, the redemption of our bodies. For in this hope we were saved. But hope that is seen is no hope at all. Who hopes for what he already has? But if we hope for what we do not yet have, we wait for it patiently.
Romans 8:18-25, NIV

It seems that God deliberately created it that way so that in the suffering that we see now, that we would look to God for something better. That way we'll appreciate what's to come, wanting to be the children of God of our own free will.