Photography is a process. Every step requires making decisions about the placement of objects, framing the shot, appropriate settings, and looking at intricacies of light and color. All these elements are also important to graphic design.
Composition is the combination of formal underlying elements like line, balance, and shape in an image.