All over the world, electrical energy is distributed as alternating current because AC voltage may be increased or decreased using a transformer. It is significantly cheaper to produce and transmit electricity in AC format rather than DC.
Power plants produce millions of Watts of power. Transmitting millions watts at low voltage will mean using thicker wire which is cost prohibitive considering the thousands of kilometers that the transmission lines travel. However, transmitting fewer watts through millions of voltage requires a thin wire which is what AC allows and it has many advantages. Firstly, the energy lost as heat due to the resistance of the wire is significantly less in a thin wire. Secondly, higher the voltage, faster the electrons can travel. Whereas in the case of DC,
a single voltage cannot transmit power very far until it begins to lose energy.
Hence power companies produce AC at a convenient voltage as per the design of the alternator, then increase it to very high voltages for transmission (such as 1 million volts), then drop it back down to lower voltages for distribution (such as 1,000 volts), and finally down to 230 volts inside the building for safety.
While DC can be stored in batteries, AC cannot be stored. Electricity as AC need to be produced as it is used. Power grids supply AC at high voltage as per the demand