I owed $35 in 2022 1040 37; overpaid $552 in 2023 1040 34 but penalted $40 in 38. Why?

I owed $35 in 2022 1040 37; overpaid $552 in 2023 1040 34 but penalted $40 in 1040 38. Why?