The temperature of a gas is a parameter that reflects the distribution of energy/momentum of the particles. It is not a characteristic of any individual particle.
Before the cosmic neutrino background was formed (when the early universe was $>10^{11}$ K) neutrinos and anti-neutrinos were produced and destroyed in thermal equilibrium with the rest of the radiation and baryonic matter. That is, the neutrinos had a distribution of energies and momenta that was determined by the temperature of the universe at that time. NB: This is not a blackbody distribution, it is the Fermi-Dirac distribution because neutrinos are spin 1/2 particles with mass.
As the universe expanded and cooled, the density fell, and at about 1 second after the big bang, the interaction timescale for the neutrinos became longer than the expansion timescale of the universe. The neutrinos "decoupled" from the other matter and radiation, but their distribution of momentum was preserved, with a characteristic temperature of a few $10^{10}$ K.
Since then, the universe has expanded by a factor of $\sim 10^{10}$ and the momentum of the individual neutrinos with respect to the comoving frame has decreased by a similar amount. (Even though the neutrinos have a small mass, you can think of the process as the expansion stretching their de Broglie wavelengths). Thus the neutrinos still have a momentum distribution, but it is now the equivalent of a much colder gas - about 2K.