Because those trivial offences are a nuisance. BART spent millions implementing fare gates which so far, is at a huge loss, but it's dramatically lowered maintenance cost and crime on the transit.
Similarly stores with loss prevention guards are probably losing money, but I'd much rather that than having to click a button to unlock items, etc.
Loss prevention in retail is absolutely tailored to the store, in the US. Essentially, the corporate dept has a bucket of funding and chooses where / how to deploy it. So when you see {insert LP device}, there's metrics to back it up. And specifically, worse metrics than the same chain stores that don't have that device.