Simulations reveal that rocky, dry super-Earths with thin atmospheres are often protected by a Jupiter-like planet