Physics and Mechanics are not synonyms. The latter is a small subset of the former.
What is included in "statistical physics" that is not included in "statistical mechanics"?
“Statistical mechanics” is also used in a broad sense, just like “quantum mechanics” is often used for anything “quantum”.
I think it’s frequent. For example: https://teach-me-codes.github.io/computational-physics/the_p...