My hunch is that it held decorative trim, such as wood, for mounting whatever. Given the amount of mulch on the deck, that "trim" long rotted away.
My gut tells me that is a total gut and restore - stringers, floor, transom, etc. Fixing it won't be cheap, it will be itchy, it will expand your...