Ionic compounds include at least 1 metal because metals need to donate electrons. (In ionic bonds one compound takes electrons, therefore you need a metal to donate electrons).
Otherwise, with two non-metals the compounds would likely share electrons.