A stringy perspective on the quantum integrable model/gauge correspondence