Buddhism isn't a religion insomuch as it is a philosphy.
e.g. "your life sucks today for reasons beyond your control? well, you must've deserved it in the previous life, scumbag"
Your interpretation is a rather naive one, and "deserve" is a loaded word.