That's a great question. Being an avid reader of philosophy, having read multiple theories on karma, and having experienced it top to bottom I can say that it exists as a law.
When nature was formed, it created certain rules to maintain harmony. One who broke the rule had to pay for it by experiencing the same effect with the exact same intensity of the action done earlier.
That's how the law of karma works. You do something good, good happens to you; you do something bad, misery follows. There are different types of karma which are a bit difficult to understand, but they are worth it.
There is karma that pays you the fruits of your action immediately, whereas in other type of karmas it takes a while for the results to fructify. You may get the fruits in this life, or the next or maybe after sevel other lives, you may never know.
Karma is so important that every action counts, as your next life or moment dependeds on it. You see bad things happen to good people and good things happen to bad people, yup karma is responsible for that.
If you are interested in knowing more about the law of karma in detail, you can get in touch with me and I'll explain it to you.