Fish relate to cover/structure, and when the trap is in the water it's a piece of structure. As they swim/hold near the trap some of them find their way inside.
It doesn't hurt them to rub on the wire. Fish scales are tough.