Are you hitting the share button after completing the note?? Should see a option to lock. If not go to settings and passcode settings
You have to first set up a password in the Notes section of the Settings app.
Then you have to go to the Share Sheet of a note in Notes and press Lock Note. When you unlock any locked note in the Notes app, all locked notes are unlocked.
It only works with iCloud Notes and "on my iPhone" Notes. It doesn't work with Gmail or other notes.