Balak sent messengers to Bilaam ben Beor. (Bemidbar 22:5)
As far as modesty was concerned, the ancient world placed limits on what kind of behavior was considered acceptable. There was a consensus about what is okay and what is immoral. It takes special power to break such universally accepted conventions. That was Bilaam.
Bilaam attained greatness in wickedness. He was not just a common, run-of-the-mill rasha. Thus he could break down borders of behavior that the whole world observed.
Chazal say that ten portions of licentiousness descended to the world, and the Arabs took nine of them. On the other hand, we see that the Arab way of dress is exceptionally modest.
How do the two go together?
Dressing modestly was once the norm, and over the course of time, things changed. People broke through the formerly observed borders. But, as we mentioned before, it takes someone great to initiate such a change.
The Arabs are a lowly nation, as Chazal say, and there was no one among them great enough to break down the borders. So they kept on behaving like always.