They do a similar thing but not exactly the same. driver.quit() is used to exit the browser, end the session, tabs, pop-ups etc.
But the when you driver.close(), only the window that has focus is closed. It is better to use driver.close() when you are dealing with multiple tabs or windows.