Question: why do noble gases form compounds with oxygen and fluorine only?
Answer: noble gas form compounds with oxygen and fluorine only because they are most electronegative elements. So they can ionise noble gases also.