Sorry, I didn't realize that retailers sold download codes. It's not something I've seen, so I'm guessing it's not well publicized.
Why would they sell at a discount? To get business! Why do they sell Mario Kart 8 for $45-52 vs $60 from Nintendo, along with the hassles of managing inventory...