We do not always understand why God does what he does or puts us in the places He does but He has reasons...
In Genesis 13 and 14 we find the story of Abram (Abraham) and Lot. This is were Lot and Abram divide up the land they are living in. Lot picks the more fertile land, but the thing is that Lot ends up in the middle of a war and taken captive by Sodom and Gomorrah, and his wife turns to salt.
At first it would appear that Abram got the short end of the stick in the land divide, but God was protecting him, not only that but God provided for him and even blessed him in the land he was in.