Question: what is the difference between hardware serial and software serial?
Answer: Obviously here, Serial is used for debugging (sending info to the serial monitor of your PC), whereas mySerial is used to communciate with the GSM device.