A beginner question here, sorry if it seems obvious.
From my understanding, a set theory like ZFC strictly dictates what can and cannot exist, e.g. the Axiom of Infinity implies the existence of an infinite set, while the Axiom of Foundation prohibits the existence of non-well-founded sets.
Then how can there be different models of the same set theory, based on the same set of axioms?
If a model contains set A, then ZFC must allow the existence of A, so why don't all the other models also contain A?
Edit: Do all models need something like axioms of their own? E.g. ZFC + CH is a model? But then how does a model differ from just a stronger theory?
This turns out to be a very general feature of models of first-order theories, due to the compactness theorem and the upward and downward Löwenheim-Skolem theorems. The upward and downward Löwenheim-Skolem theorems in particular guarantee that if ZFC has a model (which is necessarily infinite) then it has a model of every infinite cardinality (including a countable model, funnily enough; this is Skolem's paradox), so ZFC can't even pin down how big its models are.
This is a pretty subtle question as written, because it's not clear that given a set in a model of ZFC, you can make sense of what it would mean for that set to also exist or not exist in some other model of ZFC. That is: what does it mean for a set in a model of ZFC to be "the same" as a set in a different model of ZFC? I am not a set theorist but it's not clear a priori that this makes sense in general.
It's also not entirely clear what you mean by "why" but the simplest thing to say is that there is simply a difference between "it is consistent with ZFC that (some stuff happens)" and "ZFC requires (some stuff to happen)," and by the completeness theorem this is precisely equivalent to the difference between a statement being true in some model vs. it being true in every model. ZFC simply has different models in which different statements are true (by the incompleteness theorem) and that's just something we all have to live with.
Associated to every model $M$ of ZFC is its theory $\text{Th}(M)$, which is the set of all statements true in $M$. This is always a complete theory containing ZFC. Unfortunately, this means that (by the incompleteness theorem) none of these theories can be computably axiomatizable. So in a very strong sense we can't write any of them down. ZFC, for its faults, is at least something we can write down!