As I understand it, washing reduces the presence of salmonella on the outside of the egg (which is less of a concern in Europe where vaccination against it is more common). It’s a tradeoff though, as it makes the egg more permeable and therefore susceptible to other spoilage microbes, since the eggs don’t stay in a sterile environment after being washed.