This article explains how to delay your iPad from automatically locking and how often the passcode is required. By default, the iPad goes to sleep after two minutes of inactivity to conserve battery life, but you may prefer a longer period of inactivity. Instructions apply to iPads running iOS 11 or later.
iPad Air 5 (2022): How to Change Screen Timeout Before iPad Goes to Sleep/Locks (Auto-Lock)
To extend the time before your iPad goes to sleep:
From the iPad home screen, open Settings.
In the left panel, tap Display & Brightness.