Hello,
I actually answers this question last year which you can check out right here. Essentially, the electoral college was created in order to put up a barrier against democracy, since the vast majority of the founders saw democracy as the chief danger to America's future. The narrative that exists now, that it's designed to give better representation to low population states is more of a modern interpretation that started popping up with more recent elections. Due to the community's 20 year rule, I cannot explain further.
Please let me know if this answers your question and if you have any follow ups.