Custom logo functionality has two parts, first your theme has to declare support for this feature with add_theme_support( 'custom-logo' );
, then you need to use the_custom_logo
function to display it wherever you want in your template.
You can learn more from https://developer.wordpress.org/themes/functionality/custom-logo/