1099-S help?

I sold my primary home in July 2025, moved to a different state, and bought a new home in August 2025. When reporting my 1099-S, my refund changed from getting 5k to OWING 21k??? What did I do wrong? I made less than 75k on the sale of the home.