The connection between globular cluster systems and the host galaxies