Why can lockers completely negate AI turrets?

I found out that you can stand in an open locker and the AI turrets will completely ignore you. This makes it stupid easy to combat them and feels unintentional. Is this supposed to happen or is it a bug people are abusing?

Lockers aren’t targets, you monster.

Best way to look at it is you have a hostage the turret AI can’t shoot. Probably because lockers can block shots.