That's not the case, your data is only encrypted on the server you're syncing with (Joplin Cloud/Dropbox/One Drive/etc)