Expenses of rental properties increase the amount of tax owed

I asked this question before but it got archived/deleted due to my inactivity on this site. I hope that I can get it answered (again) this time.

I have 2 rental properties. Both were rented for the entire 2018. Why does the amount of Federal tax owed increase when I add more expense deduction? There seems to be a "sweet spot" where I can get the lowest tax. If I increase or decrease the expenses, my Federal tax would go up.