Submitting an app to the app store?

So I heard that app developers are suppose to create 1 development and 1 distribution certificate for the App Store (not for each app) however when I tried to connect my iPhone to my computer and run it through Xcode it says that there's no provisioning file and asked if they could resolve the issue. Well I clicked resolve issue and this random iOS team provisioning profile was created? Umm what happened? What is it? And do I have to create a distribution profile and provisioning profile for each app?

This should help, I guess:
https://developer.apple.com/...ofile.html