7 years seems to be the 'standard' for parts..might even be a government mandate or law ? As for why some parts are on the shelf and others are NLA, you have to consider the quantities originally made and then how many have been sold. A part that they made lots of and doesn't wear out, the warehouse will have them in stock, for awhile. Then there's 'inventory time'. The bean counters will see 'dead old stock' taking up valuable shelf space and decide to get rid of it, freeing up the space for newer parts they can sell.
Who I feel sorry for today are those that bought F-150 Lightnings. They may not be able to buy new batteries 10 years from now.