
2/3 e - 2x 1/3 e = 0.
The neutron may be electrically neutral, but don’t let that fool you, it still interacts with the electromagnetic field.
The neutron in isolation decays to the proton, which has a lower mass. The slightly heavier down quark converts to an up.