Walmart's focus on expanding its grocery segment, online services, and offering value products at low prices are some factors driving affluent people to the big-box retailer as people from all income groups continue to face the effects of prolonged inflation.