Tax implications when sellers include cash on the balance sheet?

I was going through a mental exercise and was wondering: when sellers include cash on the balance sheet as part of a deal, this amount is typically accounted for in the sales price. However, don't they end up paying a capital gains tax on this dollar amount that they could otherwise withdraw themselves without paying taxes?