Erin works for the District Attorney. She is not a federal prosecutor. In this episode and many others, there are multiple exterior shots of the US District Courthouse suggesting that is where her office is. She would not be working there nor would her cases be prosecuted there.