To give away has many definitions. In your example it means to get rid of or donate something. When you give somethiing away, however, you generally don't know who the recipient is, or the recipient is anonymous, or it might be an organization that distributes what you give them to another set of unknown people. If you know who's getting it, you typically don't use "give away." For example:
I'm giving away all my possessions.
I'm giving away all my possessions to my brother.
In the next example, you can use away in the second sentence because the recipients are still anonymous. You would not typically use it in the third sentence.
I'm giving away 10 prizes.
I'm giving [away] 10 prizes to the first 10 people who come to the exhibit.
I'm giving away the best prize to Tom because he worked the hardest.
There are many exceptions to this and examples we could all invent that use give away with known recipients. But if you follow this, you'll sound like a native speaker more often than if you don't.
Also keep in mind that there are several other definitions of to give away. There's also a giveaway, which is typically something inexpensive that you give to a large group of people.