Rooms must be the same level in order to be merged together. Merged rooms can hold more Dwellers within them so they can produce more resources for your Vault.