When electricity was discovered scientists tried many experiments to find out which way the electricity was flowing around circuits. In those early days they found it was impossible to determine the direction of flow.
They knew there were two types of electric charge, positive (+) and negative (-), and they decided to say that electricity was a flow of positive charge from positive to negative. They knew this was a guess but a decision had to be made. Everything known at that time could also be explained if electricity was negative charge flowing the other way, from negative to positive.
The electron was discovered in 1897 and it was found to have a negative charge. The guess made in the early days of electricity was wrong! Electricity in almost all conductors is really the flow of electrons (negative charge) from negative to positive.
By the time the electron was discovered the idea of electricity flowing from positive to negative (conventional current) was firmly established. Luckily it is not a problem to think of electricity in this way because positive charge flowing forwards is equivalent to negative charge flowing backwards.