if two like charges are close together, they repel each other. moving them closer together requires working against repulsive force which increases the potential energy of the system.