Locked up pregnancy tests

Should pregnancy tests be locked up? Today I went to Walmart to get the .88 cent tests and they were locked. I had to push a button for an associate to come unlock it.

It was a male and he grabbed three of them for me. Then he turns and looks at me and says “If it makes you feel any better these are cheap but they work. They worked for me.”

I didn’t feel any type of way because I’m ttc but after he said that I felt kind of uncomfortable. I wish I could have just went in the store grabbed the test, purchased them, and left.

Am I overreacting? Is it necessary for them to be locked? Is what he said okay? I just want opinions ladies!