it's like an impersonal statement, получилась doesn't refer to him but to возможность. It means something like an opportunity presented itself.