Why can't I use my iPhone passcode to buy apps with my Apple ID?
Your iPhone passcode and your Apple ID password are kept separate for security. If the passcode could buy apps, anyone holding your unlocked phone could make purchases, and since your Apple ID works across all your Apple devices, it could open a hole into your whole account.