Why the direction of current is opposite to the direction of flow of electrons?
Current is formed due to flow of charges, mainly electrons. In some conditions there is current due to positively charged ions or holes as well.
But in a conductors current is due to flow of electron only.
That's why , we study current as rate of flow of electrons, because electrons are the charge carriers in conductors. But the problem is that, the direction of current was already defined in the direction of flow of positive charges ,before it was discovered that current in conductors is due to electrons, as earlier scientists thought that it was due to positive charge flow.
After the discovery that the current was due to electron flow, we did not change the direction of current, but we only take the direction which was laid due to convention.
So the direction of current is taken in opposite to the direction of electron flow only due to convention.