Flat or inverted nipples can be caused by a variety of factors, including genetic predisposition, anatomical variations, or previous trauma to the breast. Hormonal changes during puberty and pregnancy can also influence nipple shape. However, it's important to note that flat or inverted nipples are usually not a sign of any serious underlying medical condition.