Material Transfer books COGS?

Hi All,

I’m just wondering if anyone can explain to me why a material transfer would book a cogs entry.

An example is of a stock ledger below

And then below is the accounting entries

It is not much but some entries can be more than the example.

It looks like this is a known issue but it was close but it is still happening to version
Frappe Framework: v13.41.4
ERPNext: v13.39.4

Thank you so much