The main reason that mixed baths have endured for so long is that communities have still supported them. When an onsen stops being a gathering place for locals, there's less to stop it slipping into disrepute.