Emergence of rogue waves from optical turbulence