Basically each level can be reached via another by noclipping, or interacting with something, spending long enough in a level, running far enough, ect
Numbers are given randomly I believe, and past level 11 or so levels aren't necessarily connected to the level with the number before and after, some can lead to many levels, one, or none, being one way trips