Well, Mo didn't actually write the book. The stories were written by others. Some, hundreds of years after Mo kicked the camel.
Your question has merit. For religions who worship one or more gods, these god(s), or the entities they appoint (like, say, Jesus or Mo), should be around to keep things on the straight and level. But as you have pointed out, they don't. For some reason, these gods don't seem to mind murder, rape, destruction and unrest. This is one of the arguments learned individuals and institutions have put forward that supports their claim that there cannot be any gods.
Those who are members of an organized religion will respond with what they believe are logical and infallible answers. My personal favourite is, "He is all knowing and all powerful. We may not understand, but He does." Another is, "He will reveal all in time." Mystic!
Okay, but in the meantime, things are getting badly out of hand down here.
For Christians and Jews, a loving god wouldn't want that pain, suffering and confusion. He would want to put things right. Like a father would, when dealing with rambunctious children. And Muslims? Well, the Quran is all about whether you're on their side or not. They kill the ones who do not stand with them. God told them to do that.
So far, all I've seen is a vengeful, but loving god, who tells some of His creations to kill unbelievers, while others are told to turn the other cheek. God must be an extraterrestrial with a wild sense of humour!