Looking at the documentation it’s because system.dataset.exportCSV is for a Vision client scope only as part of its functionality is to ask the user where to save. This doesn’t make sense in a Gateway scope.
You are going to want to use system.dataset.toCSV - Ignition User Manual 8.1 - Ignition Documentation instead
