The mass of the proton appears because, in the typical environment for the outer layers of a star, the radiation pressure acts on electrons, which are driven away from the center. Because protons are negligibly pressured by the analog of Thomson scattering, due to their larger mass, the result is to create a slight charge separation and therefore a radially directed electric field, acting to lift the positive charges, which, under the conditions in stellar atmospheres, typically are free protons. When the outward electric field is sufficient to levitate the protons against gravity, both electrons and protons are expelled together.