When was the last time that you forgot that you had merchandize under your shopping cart? I bet never. It was a conscious act of shoplifting should OP have left the premises of the store. They cut OP a break and did not charge him/her with shoplifting.
And you would likely have been convicted.

