Mugshots end up online because arrest records are public, and automated...
https://www.mediafire.com/file/qxmcyol81gtf9bt/pdf-85520-865.pdf/file
Mugshots end up online because arrest records are public, and automated scrapers constantly harvest this data for profit-driven websites. Once a photo is indexed, it spreads quickly across various platforms