I am married with 1 child. why when i add my deductions such as mortgage interes and real estate tax the standard decuction gets higher then 24000.

why does the standard deduction go up when my expensive are higher then 24000.?