Because the president appoints heads of agencies under Article II, and has the implied power to remove them, agencies answer to the president. But Congress creates agencies pursuant to the Necessary and Proper Clause. Most agencies get their very own creation statute. Congress also gives agencies their powers.