I seriously doubt that the average AAA game sale returns $40 to the publisher. That's probably about the average retail price at which a game is sold. Maybe $50 for games that stay at full price for a long time.
Then the retailer has to get a big chunk - at least 25%. In some cases there is a distributor who takes a chunk, but let's leave that out for now. We still have distribution costs, manufacturing costs, the publisher, and the developer who have to get paid out if that remaining 75%.