The prostitution ban targeted soldiers' discipline and health, not morals. [causal]
That prostitutes were considered a menace more to discipline and health than to morals and good manners is also clear from the fact that they were prohibited from practicing their trade only in big cities and around the camps. When Flaubert visited Egypt in 1849–50 he knew that no prostitutes could easily be found in Cairo, that they had moved on to Upper Egypt and that “good brothels no longer exist[ed] in Cairo.” This ban on prostitution In Cairo was largely imposed for fear of its effect on soldiers’ health and their discipline.
XREF: Connects to loc 1167 (the 1834 ban) and loc 1165 (women pushed into prostitution by dislocation), deepening why the ban existed — army hygiene and control, not morality.
Builds on: "Egyptian state banned prostitution in Cairo in 1834."
Khaled Fahmy, All the Pasha_s Men_ Mehmed…, loc. 1169