Different devices are defined in the tech file extraction section, and correspond to different tile types as defined by the tech file. If you are talking specifically about the drawn devices in the "Devices" menus, then those come from a script that is basically a companion script to the tech file, which has a bunch of Tcl procedures that draw the devices parametrically. You can find that script in the open_pdks installation at
libs.tech/magic/sky130A.tcl
.