Because there isn’t an atmosphere on the moon, the only erosion it experiences is being pelted with micrometeorites (and possibly larger ones too), so it is estimated that those footprints will be there for around 100 million years.