Even if you do not provide the police with passwords to unlock your phone, unless the data is encrypted, there may still be ways it can be accessed using modern technology.
Once lawfully accessed, your data could be used as evidence during criminal investigations. For example, location data could be used to confirm you were in a certain place at a certain time, or messages between you and other people could implicate you in an offence.