The rule sounds like fashion policing, but the practical reason is preservation: sharp heels can damage old surfaces. It is one of the rare times archaeology wins an argument with stilettos.
Source / verification note
Confirmed/reported heritage-protection rule; site policies may vary.