Why can we edit proceeds and cost basis individually- shouldn't they be the same at all times?

If swapping crypto A for crypto B, the cost basis of crypto B must equal the market value at the time of crypto A sold. So why can we edit the two values independently of each other?