Sofia herself clears it up so to speak in Season 6 episode #1 Bodies in Motion
She explains that she had just qualified for her shield when the Sheriff "volunteered" her for the CSI unit.
If I understand correctly she wanted to be a Cop, was instead sent to become a CSI, worked at that for...