To @causative's point, in philosophy the term "contingent" is a modal term indicating whatever is "contingent" was not necessary - the world could have been otherwise.
For example, I'm walking in a forest and stub my toe on a thorn. I can imagine a world where, for various reasons, I did not step on the thorn - hence my stepping on the thorn is contingent: none of those scenarios appear to be impossible, hence we say my stepping on the thorn was contingent.
Contrast that with necessary things - there are no other possibilities or ways things could have turned out (on pain of contradiction usually).
The extent to which possible worlds are really "out there" is a controversial thing. For example, how do we resolve the following?
Objective randomness: Is there true indeterminism in the world. Some events may have statistical connections but they are not deterministic, and hence nature could have come out differently (e.g., maybe quantum phenomena).
Principle of plentitude: Is there a reason to think reality is limited to one instantiation of a world? What is stopping the universe (writ large) from exploring every possible avenue as a matter of necessity?
We arrive at different conclusions depending on if we accept/reject each of these.
Reject 1, Reject 2: This is the classical determinist view. At rock bottom we are forced to posit a brute necessity (God, initial conditions). Possible worlds are only linguistic tools for expressing inability to rule it out (per @Causitive).
Reject 1, Accept 2: Modal realism (ala Lewis). The ultimate expression of the "Copernican Principle" that humanity is not privileged. Nature/reality cannot be constrained to just one world - the fullness of reality is literally everything. It's not even clear that conceivability or adherence to classical logic is sufficient, because our logical sense evolved from living in this world.
The huge benefit here is (a) we don't need spooky randomness in the world and (b) no brute necessities -- existence exists necessarily and everything else follows from that - so highly explanatory from a few assumptions. Some say its not parsimonious but they mistake "number of entities" from what I think is the more important thing, which is "number of commitments." What appears as randomness is really epistemic: there are a number of worlds "close" the the one we are actually in and we don't know which one we are in with the given information, but science has been able to learn some of the tendencies (at least in our neck of total reality).
Big downside: We cannot (nor likely will we ever) be able to empirically support this (except tangentially if we find evidence of colliding universes .. but still not a "world" in the philosophical sense of independent and non-interacting).
Accept 1, Reject 2: Some kind of "fluctuation metaphysics" that says our world came from an indeterministic initial state. How things worked out so well (or even if they did) to allow life is an open question here.
Accept 1, Accept 2*: I would say this is actually no different than modal realism, since each way the world could be would also be -- not sure in what sense there is objective changes.
Anyway, one way to summarize. Hope this helps.