> Why do we need to attach riders / sneak in legislation?
Because they can't agree on anything normally, so the only way to make changes is to shove them in with things they must agree on.
> What changes could we make to the constitution to avoid this?
https://en.wikipedia.org/wiki/Single-subject_rule
Multiple states already have this.