I think the bonus vs rams that most (all?) gunpowder units have is to give them a bonus vs trebs (which dont have their own unit class, but do have ram class). That explains the reason for rams getting more ram armor with each upgrade, to negate this bonus.