Until somebody throws a handful of sand into it. =)
I have deployed robotics in industrial applications and they are surprisingly robust.
Critical joints and components can be shielded from debris or have “puffers” strategically placed to prevent dust and dirt from being a problem.