"Centroids" can mean different things and are handled differently by different tools. Many tools treat centroids according to the center of the feature's mass (e.g. a donut's centroid would be in the center of the donuthole). Some tools have the option to force the centroid inside (e.g. Feature to Point's Inside option). Likewise, compare the difference between the centroid and trueCentroid properties of the Polygon object.