A string theory explanation for quantum chaos in the hadronic spectrum