Yes, I understand it might have had the name Samsung on it, but what Apple would typically do when they supplied memory is that it would have a Apple Logo/part number on a sticker in addition to the OEM mfg to signify that it was through Apple that was tested to Apple specs so that Apple could replace it and support it.
Apple's used a TON of different memory suppliers over the years and they change suppliers based on availablility, passing the testing, and performance of the supplier which they measure constantly. They've also have used Micron, Toshiba, Crucial, Nec, etc. etc. etc. That's been going on since the beginning of time. But what Apple USED to do is put a sticker on the memory module that had an Apple logo/part number just to signify that it had gone through Apple.
What they are doing now seems to be a recent change that I wasn't aware of. that's all.
But bottom line, if your computer is STILL under warranty or AppleCare contract, I will only recommend buying additional memory directly from Apple as I have found it to be the most reliable and the most compatible. I have been on various memory forums and from time to time the 3rd party guys have compatibiliy and/or reliability issues constantly, some better/worse than others. But from my years of experience, since I've been using Macs since 1985, I've had ZERO probelms with memory supplied by Apple or bought through Apple with their logos on it. buying memory through the 3rd party route has been hit or miss. I had good luck with the top end Kingston memory, but it wasn't that much cheaper at the time, but they had decent testing procedures and were, at the time, a qualified Apple 3rd party memory supplier. Apple has changed their policies over the years with 3rd party memory. I believe at one time a LONG time ago, they would certify various 3rd party memory, but that program ended, but I don't know what they currently have in place.
I will talk to an Apple Support person and find out for myself what the current policies are because like anything, they change without much publicity. But looking at the memory they supplied from the factory not having an Apple logo/part number is something recent. That's what has changed.