From the wiki (which is quoting the game itself):
"...The percentage any stratum is filled equals the chance of that theme being produced. So if a gate launches with a beast stratum that is only half full, there is only actually a 50% chance that the stratum will lock in as beast themed. Only a completely filled stratum guarantees its theme."
If that random chance fails, then we get random levels.