Sam was a Hobbit....not an elf.
But a multi-lingual Hobbit.
But some of the Hobbits knew elvish. Their language, common language, I think descended from elvish.