I only regret experiencing poor leadership styles (but am also thankful to see them.) The product is a result of the team led by leadership so any and all of the factors in there ultimately lead to what is built.
Reading the other posters though I can see that there are some unethical products being built where you can impact someone else negatively.