
The short answer is we don't know who invented rivets because they first appeared in Ancient Egypt over 5000 years ago, where they fixed handles to clay jars. That suggests a second reason - there isn't a single type of rivet.
Aside from the clay jars, Vikings used rivets to attach planks in their longboats.