A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
This is because CSV files is a plain text file and only can store one sheet in it.
To avoid losing your raw data, you can save your file as an Excel workbook (.xlsx). This will allow you to keep both the pivot table and the raw data in separate files.