Well you can never know the real answer unless God answers your question.
During the period before Islam Arab race was pretty nasty. They didnt pay much attention to personal cleaning. They were still worshiping some puppets they made. They didnt have a good justice nor a government system. Illegal activities were raising up everyday.
So someday God has found the worst in Arabs and sent his last Prophet to them.