Walmart is raising the minimum age to purchase all firearms and ammunition to 21, the company announced on Wednesday.