Heat engines obviously need a source and sink. The source being the hot reservoir , and the sink being the cold reserviour(ambient air). The second law of thermodynamics says that the direction of temperature flow/transfer is one way (unless work is supplied) so with heat engines you are going from the hot reservior to the cold reservior. When you go from a hot body to a cold body, entropy decreases in the hot body, that is the level of molecular disorder in the heat engine decreases. (because heat is released to the ambient air)
So, in order to bring entropy into the heat engine you would have to reverse the process of heat flow which would require some type of work input, which means more entropy will needed to be generated..
Most of the entropy generated in actual heat engines is caused by friction and vibration.
maybe that helps?