From your Google classroom, select Classwork > choose an assignment > View Assignment
Navigate to the Student Work page. Then, click Settings ⚙️ > Download these grades as CSV