Rivets, when installed hot do have strength in tension (just try to pry a rivet joint loose to illustrate that.) They do swell to fill the hole, and once the head is formed on the back side, shrink lengthwise as they cool to put the rivet in tension and compress the joint.