Pension-related costs led Kroger to make a loss in the fourth quarter of its financial year, offsetting an increase in sales.