It isn’t complicated to understand this. The Muslims purposely built atop the destroyed temple to show the dominance after conquering Jerusalem. Compare it to dogs marking their fireplug - last one is top dog.
......Yet NOT ONCE is Jerusalem EVER mentioned in the Koran, unlike the Bible in which Jerusalem is mentioned over 600 times.