Looks like Samsung is adding the Grammarly functionality to their built-in (still an app, technically) keyboard in an upcoming update, or they already have.
So now, very likely, both Samsung and Grammarly have access to everything you type on your phone.