How Does Yeast Provide Flavor?

Question: I’m wondering how the various yeasts create flavor? I know yeast gives off co2 and ETOH. If one filters their beer and only those two organic compounds are leftover, …