Gboard can remember the words you type to help with word prediction and spelling. But this data is stored only on your device, so you have nothing to worry about. In other words, this data is not accessible to Google or any apps other than Gboard.