Again, I'm not sure we know enough about Anakin's and Obi...
Wan's relationship to say. George Lucas makes/made movies for 14 Y.O. boys. It's all about cool looking ships and massive exploding death stars. Characters and character development wasn't really his thing.
----
-----
"When law and morality contradict each other, the citizen has the cruel alternative of either losing his moral sense or losing his respect for the law...many persons have erroneoulsy held that things are just because the law makes them so."