Lonazep is also a Benzodiazepine, a class of drugs that Nitrazepam belongs to. It has similar modes of action and is prescribed for similar issues, i.e. anxiety disorders and insomnia.
Both these drugs reduce the hyperactivity of neurons and calm the brain down. Hence, they are dangerous when taken together.