Why does the sunkness or nosunkness of a cost depend on the decision being made?

Because the cost only becomes sunk after the decision being made. Up to then is just a potential sunk cost. Sunk costs are costs that once incurred they cannot be recovered.