Graphic design is a broad domain and it covers many types of content.
The core is this: graphic designers create visual content that aid the communication of various messages. No matter what digital domain it might be (marketing, web/app development, etc.), some sort of visual product is needed (pictures, animations, layouts, etc.). Useful features make a product good, but a well thought visual identity makes a product great.