Because there are records of your arrest and conviction that exist separate from the courthouse where you were convicted. The courthouse is the only location where the record was expunted. The police department who arrested you will have their own record and I expect there may be a record available via the internet as well.
You might want to google your name and see what shows up.