Welcome to Android Central! What kind of data was it? Photos? Data that was associated with apps? The SD card isn't supposed to be affected by a factory reset, but if your apps were saving data to the card, then that data might be affected (since it was linked to the apps).