Originally, it was a 40-day-long period of imposed isolation, so it's from the Italian for "forty"
This is due to the 40-day isolation of ships... [DOC] [TLE] Quarantine | Define Quarantine at Dictionary.com [PAR] Quarantine definition, a strict isolation imposed to prevent the spread of disease.