Another way to say "You would learn because you are stupid" is "Being stupid is a reason to learn."