Статик вложенные классы используются для логической композиции. Когда он как-то связан с основным классом и логичнее его оставить в этом же классе, чем выделять в отдельный.
https://docs.oracle.com/javase/tutorial/java/javaOO/nested.html-It is a way of logically grouping classes that are only used in one place: If a class is useful to only one other class, then it is logical to embed it in that class and keep the two together. Nesting such "helper classes" makes their package more streamlined.
-It can lead to more readable and maintainable code: Nesting small classes within top-level classes places the code closer to where it is used.
Но пример сходу затрудняюсь привести из стандартной либы или spring