The electron has negative charge. When an electron is approaching towards another electron, then due to same negative charge repulsive force is produced between them. So, to bring them closer a work is done against this repulsive force. This work is stored in the form of electrostatic potential energy. Thus, electrostatic potential energy of system increases