Hello there,
Capabilities must be declared in your Windows app's package manifest to access certain Windows APIs or resources, such as pictures, music, or devices such as the camera or the microphone. Capabilities are used by UWP apps as well as other types of desktop apps that are packaged in an MSIX or AppX package for Windows.
You request access to specific resources or API by declaring capabilities in your app's package manifest.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--