Your boat had a "deck over". Basically a crappy patch job to sell it
The deck usually rots a decade after the transom and stringers. Boats rot from bottom up.
To do it right, you are going to have to pull the interior, pull the motor/drive, pull the cap and cut out the rotten floor, stringers...