![Section of an apple](
Image Source: Infovisual: Apple
I think that the density of the endocarp is more than the mesocarp, and in that small apple, more amount of endocarp is present than mesocarp, making its average density more than water, thus, making it sink. Vice versa for the bigger apples.