The two arguments is referring to the  route pattern and then  the callback. The
callback in those examples is itself accepting three arguments, typically
$request, $response, $args.
I suspect, but have know way of knowing, that most people use
$args['id'] as it is a bit shorter to type. I typically use
$request->getAttribute('id') to get things from the request body, or things I’ve manually added to the request using