Something that lets you in and not out. A trap is defined by asymmetry, not by malice.
Old English traeppe (a snare), of West Germanic origin, named a device that closes on what enters it and does not let it back out.
A thing that admits and does not release, defined by that asymmetry alone and not by any intent behind it.