Google Chrome closing tabs instead of quiting application
That is the way most apps behave on Mac OS X.

The red x button in the corner of the screen closes the window, while choosing Quit from the menu or clicking Command+Q will close the app.

There is no way to "fix this" because that is the way the app is meant to behave.