why do non-metals react only with steam and not with water?
Generally, the statement is given that non-metals even do not react with water. But very reactive non-metals i.e. halides like Fluorine and Chlorine react with water. So, there is no such case that non-metals react with steam only.