While you're not supposed to pirate music and give it to other people (it's illegal and against the rules here), iTunes does NOT block such things, so I can only presume that the error was on her end or that the CD you ripped had some kind of copy-protection embedded in the tracks specifically to stop exactly what you were doing (many CDs have this now).

In either case, iTunes had nothing to do with it.