In .csv only the values from within your worksheet are stored. No formulas, no styling, just values. In .xlsx your data is stored in the native Excel format, which means that also your formulas and cell and value styles are preserved when you open it again in Excel.