A mixture is not the same as a compound which is made of two or more atoms connected together. For instance, a mixture of the gases hydrogen and nitrogen contains hydrogen and nitrogen, not the compound ammonia which is made of hydrogen and nitrogen atoms.