Google (and plenty of others) uses IP addresses, browser fingerprinting, etc to link anonymous accounts & browsing sessions together.