The default task doesn't apply when creating a new invoice by the system

The default task doesn't apply when creating a new invoice by the system

In my system, I'm creating a new invoice with items, as default I'm using default tax for each item and it's (Standard Rate 5%) but when the invoice is created by the system the tax that applied for the item is Exempt