This command is found in Image>/image/Flatten Image.
Flatten image merges all layers down onto the background layer. Many image formats do not support layers: when saving to that format GIMP asks you to flatten (automatically) your image before.