You know when we walk past some stinky trash? We hold our nose and run past, right? "Yuck!" But when Mom is baking a delicious cake, we want to stay close smelling that good smell. "Mmm!"
The Bible says that for God, meanness (lying, hitting) is just like that bad smell. He "detests" it and moves away. But when you do the right thing (are fair, share your toys), that's a "perfume" to God. He loves it and wants to stay close!