Muslims venerate Mohammed as the perfect man / perfect muslim, examples of his way of life as catalogued in the Hadith are nearly as important as the quran itself.
So yes, things were different back then, but it’s a problem that millions of people alive today see such behaviour as something worthy of worship and emulation.