Obviously, this information may be needed to find out what permissions are available. If you, in a specific application, do not need this information, then you will not request it, but if such information is suddenly needed for any purpose, then you know where to get it.
The practical point may be, for example, to find out whether the camera supports shooting in JPEG at all, that is, if the method has not returned any resolution, the camera does not shoot in JPEG.
Then, you can suggest the user to choose their own settings, in what resolution to shoot - so that he doesn’t stumble on what it is when shooting, when the quality is too low, or too high, or the aspect is not suitable for the photo you need in your application.
This method can be useful both in helping to display a list of available options and in checking whether there is such permission if, say, you have a fixed list for all devices, but, as you know, not all permissions supported by all cameras.
It is also possible to combine both options and based on the obtained information about the resolutions of a particular camera, create a list of the desired options in the settings (for example, only widescreen) with those supported by this particular camera.
Then you set a fixed resolution, knowing exactly what the camera supports.
Or you can get this information to set the size of the widget to display the shot, exactly the size of the photo.
In general, various APIs contain a large number of classes and methods, many of which you may never need and you will not use them, since they are not required to solve exactly your problem - this is quite normal.
The presence of some functions in the API does not imply their indispensable use, especially if you find it difficult to figure out exactly how they could be used.
Do not dwell on it. It’s good that you know that there is such an opportunity and someday it will be useful to you. If you don’t know how to use this information, then you personally don’t need it in this project. Leave it alone and solve the problems that the current project requires.
If you are very interested in who, how, where and for what uses this method, you can look at the projects where it is used and draw some conclusions for yourself.