According to many sources it would be both. We are here to learn and to experience.
I think the golden rule is the basic tenet of all religions. We are all basically One, that's why I find oneness and nondualism so interesting.
What you do to another being, you essentially do that to yourself. Only our personalities, egos gives us our individuality and sense of separateness, but on a more profound level we are all connected, we just don't feel or see that on this level fully. On this level we might intellectually understand the concept of oneness, but it's another thing to fully live that by transcending the boundaries of the personal little me, while giving more room for the soul or the higher self to shine through your own being as a human. As a whole humanity is still very far away from that kind of a transcendental or elevated state of consciousness as we obviously can see how much disharmony there is on the planet. I think it's mainly for the reason that the spiritual development is not very advanced around here and perhaps there has been some misguidance too. This planet with it's peoples is a very mixed bag when it comes to different kind of consciousnesses or souls incarnated as humans, if you will. Most of course are probably quite human in their origin and primitive in that sense or younger souls.