@Richa Kumari, Thanks for posting in Q&A.
For the setting "Maximum minutes of inactivity until screen locks", it configures the idle time before the device lock its screen. For the setting "Maximum minutes after screen lock before password is required", it specify how soon after the screen is locked before a user must enter a password to access the device. You can see more details in the following link:
https://learn.microsoft.com/en-us/mem/intune/protect/compliance-policy-create-ios
For google map or youtube screen lock off. Based on my understanding, it can be related. You can exclude these personal devices to see if the behavior will change.
Hope it can help.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.