The reason is that in this moment, you feel the work you've done must be worth a lot, because it is fresh in your mind, and because cognitive dissonance dictates you believe you haven't wasted all those hours of coding.
Meanwhile you are still imagining the big payoff from the company succeeding ... which is a great motivator when you're working on the startup, but when you are parting ways, you should remember being super successful is incredibly rare. You would benefit from bringing rationality in and remembering it was all always a long shot.
So you will tend to overvalue the company, based on the work you've done, while undervaluing the personal relationships and lessons learned.
Take a long view. Do whatever deal will make your cofounder happy. Be nice in every way to every one involved, make good on any promises, and give it time.
When you look back on this a year from now you will be glad you did.