how solidworks decides to refine the mesh in certain regions?

Hello,

my question is how solidworks  decides to refine the mesh in certain regions? I mean,why in some part of the model,the mesh is finer than the other parts? I assumed it is because of more details at that point but I need more reasons.

Thank you in advance

SolidworksSimulation