Routines are created using “create a routine” within the SmartThings app.
“Rules” were originally called “recipes,” although that terminology never really seem to catch on.
There’s a good technical discussion of the available documentation and the differences between the two in the following thread: