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 had a significant influence on the region, introducing and spreading Islam, which is the predominant religion in these countries today.