For better security, set a passcode that needs to be entered to unlock iPad when you turn it on or wake it. Setting a passcode also turns on data protection, which encrypts your iPad data with 256-bit AES encryption. (Some apps may opt out of using data protection.)
Go to Settings > Display & Brightness > Auto-Lock, then set a length of time.