If we assume that the combustion of their fuel is harmful to the environment, F1 is, surprise, not harmful, but beneficial. It may appear to be paradoxical, yet it is correct.
F1 is responsible for several technological developments. Because of the intense competition and stringent regulations, F1 has been developing its engines and cars in general since its inception. F1 has developed a number of strategies to save fuel or improve engine performance. (or other racing events) This knowledge is applied to the design of ordinary automobiles, resulting in vehicles that are better and more efficient. Overall, F1, or more precisely, their study, causes us to utilize less gasoline. They do, in fact, use a small amount of fuel, but not much. They are only allowed to utilize 105kg of gasoline every race per car, which is nothing on a worldwide scale. However, the cumulative savings produced by our cars as a result of their study make a significant difference on a global basis. The cost of fuel for F1 is very low.
Yes F1 is a bit polluted, but they are working very hard on this. In exchange, we get many innovations in return that ensure that our contemporary cars are safer and better for the environment. Nice deal I would say!
Rick