That's because they share the defining characteristics of mammalia and are evolutionarily linked to the rest of the class.
Karena monotremata punya karakter khas mamalia dan secara evolusi berhubungan dengan anggota lain kelas mamalia.