I believe that mineral generation routine runs as part of each system creation. Once orbital survey is conducted it sets the planet surveyed flag, which makes that info visible to us. While the GeoSurveyTeam runs the same mineral generation routine from before only at lower probability, if it rolls better quantity, availability or find new deposit those values will be used to adjust the old ones.