Hier ein Vorschlag ohne Kenntnis eines Minimalbeispiels des Themenstarters aber mit dem Vorschlag von @Ijon Tichy das Paket *subcaption* einzubinden:
    \documentclass{scrartcl}
    \usepackage{graphicx}
    \usepackage{subcaption}
    
    \begin{document}
    
    \begin{figure}[h]
    \centering
    \subcaptionbox{Bild 1}{\includegraphics[width=6cm,height=4.5cm,keepaspectratio]{example-image-a}}
1}{\includegraphics[width=6cm,height=4.5cm,keepaspectratio]
     {example-image-a}}
    \subcaptionbox{Bild 2}{\includegraphics[width=6cm,height=4.5cm,keepaspectratio]{example-image-b}}
2}{\includegraphics[width=6cm,height=4.5cm,keepaspectratio]
     {example-image-b}}
    \caption{Zwei Bilder}
    \end{figure}
    
    \end{document}