So sorry to hear this happened to you; thanks for sharing and glad to hear everything turned out ok. Ive heard of similar situations where a friend ended up in a house that was the scene of a crime but was charged with multiple felonies even though he was there after the crime had occurred and was the one to call the cops. Most people just don’t understand cops; most of them are trying to minimize the work they need to do and as soon as they have established a narrative they will just go with it. Especially for lower class neighborhoods and especially when dealing with people who have “priors”, regardless of how minor they might be.
Most people’s experience of the law is through television/movies and its just so inaccurate.