Same goes for ornamental cherry or peach cultivars - they were bred to select for more petals and each additional petal is where a stamen developed into a petal instead.
Cherry and peach are Prunus genus and that genus is part of the Rosaceae family the rose belongs to.
https://en.wikipedia.org/wiki/Double-flowered #Botany #PlantBreeding