The implication is that police are routinely scanning all Encrochat photographs to extract fingerprints and other biometric details to match with existing databases.
Or even more prosaically — they were monitoring that chat for anything juicy at all, and got a break when the conversation organically went to cheeses and the guy posted that pic