Rising prices and the LIFO reserve
When costs rise, FIFO reports the highest ending inventory and gross profit, LIFO the lowest, and average cost falls between. Companies that report on LIFO often keep their internal records on FIFO or average cost and bridge the two with a LIFO reserve: the excess of the other measure over LIFO. Because cost of goods sold equals beginning inventory plus purchases minus ending inventory, the change in the reserve during the year is the difference in cost of goods sold. A reserve that grows means LIFO cost of goods sold is higher by that increase.
A LIFO liquidation happens when a company sells more units than it buys, so old, low-cost layers flow into cost of goods sold. Gross profit rises for a reason that won't recur.