Many dharmic religions view reincarnation as a punishment or something like a reward depending on your actions in the previous life. Most of them see all existence as suffering though and the goal is to break out of incarnation into the land of the living. I find this hard to believe though because even human behavior shows us doing things that are not enjoyable for reasons that are not instantly beneficial or unclear to most.

It should be noted that the soul is not forced to remain here and can leave whenever they want. If a soul wants to go back to the spirit world they can kill off their human vessel. This is how people die in accidents or other ways. If a human vessel kills itself from suicide or drug overdose, that is when we see the soul of the person regretting it and taking those emotions with them. In fact, many abortions and miscarriages happen because the soul of the baby who was going to grow up did not want to comply with that lifetime and abandoned it at the last minute.

When someone is murdered, the arguments you hear in the afterlife are usually “Why did you kill my character? I was going to accomplish so much in that lifetime/ I wasn’t ready to give it up yet.” Your metaphysical self may really like its current incarnation if it spent a lot of time refining them, but it is known that everything is temporary so the souls usually know they will one day need to give them up. Most eventually get good enough at incarnating that they can bring memories to the next life or just incarnate with the third eye already open.

It is possible for the soul of a person to be punished if they did something heinous, but that happens in the punishment pits of hell and not in the form of an entire reincarnation. That would be a waste of available slots on the planet. The reason you see so many people being born in the third world is because on the soul level those parts of the world resonate with them. That is why China, India, and Nigeria have such high populations while the more remote regions like Namibia and Canada have so few people inhabiting them. As the souls who come to the Earth cannot connect spiritually to those geographic locations, less of them choose to be born there which causes the populations to decline even further. It is no coincidence that regions with a history of spirituality are the most populated.