It’s used to account for inventory. It record the most recent produced items as sold first. It records how the newest item made is the first to be sold. Last in first out is used during inflation as a way to reduce income tax.
Hoped that help sorry if it didn’t