Looks like it got wet where it contracted the wood. Black stains and rotten edges not bad inletting.

The fix would be cutting away the rot and fill with fresh wood or epoxy putty then re inlet and touch up finish.