If I pay foreign tax on dividends, why do I pay more in federal tax compared to if no foreign tax was paid?

In box 1a and 1b I have the amount of $1523
The foreign tax paid at box 7 of $401

If I instead enter a zero amount in box 7, the federal tax is $37 less, this seems backwards