Because the official app is built so this could never happen there is another commercial app LUCA that got adopted by states and companies because of nepotism and false advertising. The police is using the data of this app not the official one.
Assuming you are correct that the app keeps a history, your argument is still bullshit. Requiring physical access and unlocking of the phone is not at all comparable to having a server somewhere storing such data.