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