The wavelength of a photon isn’t intrinsic to the photon itself—it depends on the observer’s inertial frame. The Hubble redshift occurs because expansion affects the velocity of observers relative to the photons’ original frame, not because it affects photons directly.