Why did so many Muslims commit pogroms on Jews throughout history ?

Jewish golden age was in Andalusia in Spain under Muslim rule.
The golden age of Jewish culture in Spain, which coincided with the Middle Ages in Europe, was a period of Muslim rule during which, intermittently, Jews were generally accepted in society and Jewish religious, cultural, and economic life flourished.
A period of tolerance dawned for the Jews of the Iberian Peninsula. Their number was considerably augmented by immigration from North Africa in the wake of the Muslim conquest. Immigrants from North Africa and the Middle East bolstered the Jewish population and made Muslim Spain probably the largest centre of contemporary Jews. Especially after 912, during the reign of Abd al-Rahman III and his son, Al-Hakam II, the Jews prospered culturally, and some notable figures held high posts in the Caliphate of Córdoba. Jewish philosophers, mathematicians, astronomers, poets and rabbinical scholars composed highly-rich cultural and scientific work. Many devoted themselves to the study of the sciences and philosophy, composing many of the most valuable texts of Jewish philosophy. Jews took part in the overall prosperity of Muslim Al-Andalus. Jewish economic expansion was unparallelled.
'Abd al-Rahman's court physician and minister was Hasdai ibn Shaprut, the patron of Menahem ben Saruq, Dunash ben Labrat and other Jewish scholars and poets. In following centuries, Jewish thought flourished under famous figures such as Samuel Ha-Nagid, Moses ibn Ezra, Solomon ibn Gabirol and Judah Halevi.[5] During 'Abd al-Rahman's term of power, the scholar Moses ben Hanoch was appointed rabbi of Córdoba, and as a consequence al-Andalus became the center of Talmudic study, and Córdoba the meeting-place of Jewish savants.
Jews had their own legal system and social services.
During the reign of the Berber dynasties, many Jewish and even Muslim scholars left the Muslim-controlled portion of Iberia for the city of Toledo, which had been reconquered in 1085 by Christian forces.
The major Jewish presence in Iberia continued until the Jews were forced to leave or to convert to Christianity in the Alhambra Decreeof 1492 and a similar decree by Portugal in 1496.
Nice try Zionist hasbara, it backfired big time.