The historical factor that explains the leading religion in Albania, Kosovo, and Bosnia and Herzegovina is:
The Ottoman empire once controlled these countries.
This is because the Ottoman Empire, which was predominantly Muslim, significantly influenced the religious landscape in the regions it controlled, leading to a majority Muslim population in these countries.