There are some good designs which prevent them from getting dirty. For example, Mercedes and VW put them in the rear badge and they're only exposed when needed.
Rear view cameras are not a replacement for rear view mirrors, is my point. You use the two for different things. A rear view camera trying to replace a mirror would need a cleaning and wiping solution, something that we use rear window wipers for with analogue mirrors.