A small correction- it’s not the small mass of the neutrino that allows it to escape quickly, but the fact that they are electrically neutral, and also do not interact with the strong force and do not get caught by the nucleus of atoms. Photons have no mass, but they arrive after the neutrinos because they are slowed down by being constantly absorbed and remitted by the atoms of the star through the electromagnetic force.