In the case of laser marking, for example, a changing or non-optimum beam profile may mean that one letter is deeper than the next, and in refractive eye surgery it may have more serious consequences.
LEDs from remote controls are surprisingly effective. For more precision, swap to narrow-beam LEDs or use filtered photo diodes to block ambient noise from sunlight or fluorescent lights.