They don't affect the reactant amount at equilibrium in the reaction.
The equilibrium constant expression is the ratio of the concentrations of the products over the reactants. Pure solids and liquids have a concentration value of 1 in this expression, so they're ignored. Even though solids and liquids technically do have a concentration, they are expected to be constant, so there is no change. Thus, they don't have an impact on the equilibrium.