Why do the rich get richer and the poor get poorer

It is a seemingly paradox the people who have the most tend to get even more resources while life goes one while the people with the least amount of resources and deficiencies just get worst over time.
You could say that the rich are exploiting and abusing the poor so they create uneven exchanges that allow them to profit from, this is certainly true in some cases but i don't think it is the only factor that contributes to this the people that are in a place of deficiency also have a part of responsibility and they are responsible for doing something that is detrimental for their well being.
On the other hand there is a tendency for opposite to attract like the way magnets do, so if the world would work from this principle whatever you have right know you would eventually have the opposite of it, but things don't really work like this. Because if they would work nobody would be able to achieve anything for a longer period of time.
It is an obviously true statement to say that nobody avoids negative things in their life, so it is not that successful people don't encounter negative experience they just seem to have more positive in their life than unsuccessful people do.
Life tends to happen in cycles you go through a series of positive experiences and eventually something negative will happen to you that will generally trigger a series of negative experiences. When there is a lot of resistance towards the negative, and someone is very unwilling to go through a negative series of experience this will tend to amplify the negative and make it last longer.

For example if you are very resistant towards failure, behaving in such a way to reduce failure in your life is going to lead to a lack of skills, because we learn through failure and when you end up being so deficient to the point of incompetency you end up with an excessive amount of failure in your life.
The same is valid for pain, violence or death. If you avoid discomfort you won't do the necessary things to grow so you will deteriorate and end up with way more discomfort in your future and decay. If you avoid confrontation your relationships could deteriorate so badly that you are going to be very unsatisfied and this creates more opportunity for conflict in your future.

Life will generally flow from pozitiv to positive to positive etc and eventually will switch polarity and is going to flow to negative to negative to negative etc. and then it will switch again. This cycle will happen through out your entire life.
According to the theory of the law of attraction, from books like "The Secret" teaches people to avoid negativity and pay attention to only positive things. Unfortunately you have no choice we all experience negative we live in a dualistic world, it is impossible to avoid either one of the negative or the pozitiv.
As a matter of fact avoiding the negative is what creates the scarcity in someones life, energy flows from negative to positive. If you are learning a new skill you have to fail over and over again before you can have any realistic chances at succeeding.