Gynecomastia can be caused by a variety of factors, including hormonal imbalances, genetics, certain medical conditions, and the use of certain medications or substances.