Local correlations in the attractive one-dimensional Bose gas: From Bethe ansatz to the Gross-Pitaevskii equation