Well, yeah but you can't credibly abandon your citizens in an unfamiliar country and in a city that's being locked down where you probably have limited embassy staff and curtailed movement. The only real option is to accept there's a risk and mitigate them - and it's not just European countries, Japan, India, Australia etc are all doing the same.
Besides, the virus has already spread internationally so one way or another it's going to reach most international cities within the next month.