Even if you live in a large city, they can be like small towns. Unless you are hiding out, which you obviously are not, there are countless ways that someone can get the info. Court records like this are public. All I needed many years ago was a persons name and I could find out if they had a criminal record and for what along with other info. Also if they had ever been in court for civil matters. Maybe the children said your name or your girlfriend let it slip. Maybe a neighbor has a friend or relative that works with you. Even if your criminal record is from another town and/or state, that is not hard to find now days.
You have no proof that anyone in law enforcement obtained this information. And if they were to look into it and find that an officer did get it, you would not know about it.

