I don’t think you are naive - it’s counter-intuitive. The political context is important: Ukraine is incentivised to portraying itself as a country that respects international law and norms. The fact of life is that this includes respecting civil contracts made in good faith. This moral high ground has a cost.