Police asking, and a judge ordering are pretty different things.
There is a difference between shop owners volunteering camera information and this case. This is closer to all shop owners in town being ordered to turn over the personal information of everyone who bought a shovel, because they found a body that had been buried.
Isn't that literally what is happening here? The police are asking Google who looked for this very specific thing in this very specific area at this very specific time period.