The left panel is a Spring Boot request. Before your code runs, the framework pushes ten stack frames: the servlet container, the dispatcher, the filter chain, the exception resolver, the transaction proxy, the AOP interceptor. Each frame is machinery the framework needs to orchestrate the request. Your actual business logic runs at the bottom of that stack, nested inside framework code you did not write and cannot see without a debugger.
The right panel is a function pipeline. The HTTP handler calls validate, then query, then respond. Three frames. Each one is your code. There is no framework between you and the request. The call stack is a precise description of what is happening: parse, validate, query, respond.
The language is the same in both cases. Java can do either. So can Python, TypeScript, C#, and every other language in the selector on the landing page. The depth of the call stack is a choice made by the architecture, not a property of the language.