Be aware that in the latest version of BC (maybe from 18 and above), there is two columns with the same caption = "Type" in sales and purchase subforms ("Sales Invoice Subform" in your case).
The first "Type" is the field (your first screenshot).
The second "Type" is a calculated value base on the field "Type" (your second screenshot).
I'll assume that you're a developer and you know how to open VS Code and download symbols. In this case, you can navigate to page "Sales Invoice Subform" and search for "FilteredTypeField". You'll then understand how it works. If not, just ask your developer.