It’s a model of a major civilization collapse. One can contemplate and discuss strategies and tactics without the emotional baggage of a too real scenario, and no one ever gets accused of being racis, jingoistic or xenophobic.
You raise a good point - TWD is a good cultural projection for viewers to interpret zombies as being whatever evil “Them” they like to see them as.