I believe the main advantages are pattern matching and garbage collection because they make AST manipulation easier.
There’s a thread on the choice of language for the Stan compiler (although the discussion ends up being mostly RStan installation issues)