Frey grew up in Starnberg and completed a law degree. After completing the two state examinations, he worked for the Free State of Bavaria and, among other things, worked in the state building administration. Most recently, from May 2017 until his election as district administrator, he was head of the department for domestic policy issues in the Bavarian Ministry of the Interior. For the CSU he was elected to the Starnberg City Council in 2014.