It used to be that a lost phone could be factory reset and the new owner was on their way. To slow down theft, a new feature is Factory Reset Protection. As the owner you turn it off.
https://www.google.com/search?q=turn+off+frp+lock

If you forgot your passcodes you talk to your carrier and Samsung.

This is good news. Less chance a lost phone will be worth money.