The relevant thing to consider is that Apple likely wouldn't do it for an amount of money that was anything resembling a good deal for Amazon.
End-caps are a different story, but often the "purchase" of an end-cap simply takes the form of wholesale pricing concessions, which allow the store to make more money by promoting those products for a short period of time. Historically, some DSD brands will lease end-caps at stores (speaking specifically about supermarkets in this context), but these are serviced and stocked by external companies. Depending on the marketing strategy of a chain, private label products are often placed on end-caps to drive volume for what are often their highest-margin products (due to heavy control over the whole supply chain) and are not subject to any purchasing.
TL;DR: The extent to which retail stores "sell" shelf-space is often exaggerated, a kind of folk wisdom that may have been more truthful in the past but doesn't reflect modern business practices.
https://www.vox.com/2016/11/22/13707022/grocery-store-slotti...