When you buy something, it tells the person who sold it to you to stock more of it, which tells the people making it to make more of it. Since meat production involves killing animals, it means that when you buy meat, it causes more animals to be killed. If you go vegan and stop buying meat, it causes there to be less demand, which reduces the number of animals killed compared to if you didn’t.