Before you lock your iPad, you should set up a security method. Depending on your iPad model, this can include Touch ID or Face ID.
If you're new to Mac computers, a good first step is figuring out how to lock your Mac to keep it secure from intruders.