Re: "Perhaps a better comparison would be the margins in retail stores?"
We only have gross margins to compare! You can't compare the retail outlets net margin with the app stores gross margin either.
If you compare to a large software company selling through partners (my experience is with SAP), the large partners make 50% at list price, but do have large annual fees to pay.
Smaller resellers are making at 20-30%.