The tax code was and supposed to be remain consistent here and failed to do so. It’s typically viewed as “punishment” for filing jointly as joint filing is currently a one-way street of no legal return without a likely appeal/denial/court battle (which would likely be more costly than the $5k max at stake with this quirk), while filing separately can be amended after the tax year if it proves to be beneficial for the tax payer.