It seems that claws-mail will delete/trash messages marked spam unconditionally. It's hard-coded in and is not optional. IIRC, it wasn't this way before 3.10, which made it convenient to sort, review and classify what was marked as spam.