Neutron stars are so named because in the simplest of models they are made of neutrons. They form when the core of a large star collapses, and the weight of gravity causes atoms to collapse. Electrons are squeezed together with protons so that the core becomes a dense sea of neutrons.
Source:
phys.org