Morality isn't determined by a book. It's determined by the consequences. Why is murder wrong? Because the 10 commandments said so? That's absurd.
If murder was moral, then there would be no people left. That's why it's immoral. Overtime, humans learned this.
The same is true for stealing...