this we do while preparing trading account. with this entry closing stock comes into the book. no further entry is passed thatswhy it is thereafter shown in balance sheet.
next year, it is transferred to debit side of trading account and thus closed. In that year, same cycle is repeated for that year's closing stock.