There are a lot of commandments that don't make sense: the conflicting commandments to Adam and Eve to not eat of the tree of knowledge but to multiply and replenish the earth, or Nephi being commanded to kill Laban and lie about being him when that would be breaking two of the ten big commandments.
Commandment aren't about logic, they're about faith. Not blind faith, but conversing with God faith.
Andrew Whittle gave the following insight on a quote: "President Henry B. Eyring: 'Human judgment and logical thinking will not be enough to get answers to the questions that matter most in life. We need revelation from God.' This really spoke to me because I am a logical thinker and have struggled with certain things because it did not make logical sense. I have learned to increase my faith so I can one day understand things I may not know now. [Someone] asked ... what the opposite of faith was. ... The opposite of faith is logic."
My friend, Jackie wrote a blog post about it as well: Jackie's Post. She gave a great example of how sometimes your kids do something and you get mad at them without letting them explain what they were doing. Then later after you've calmed down, you go back and ask them what happened and they give a reasonable explanation that makes you feel bad for not listening before. You know your kids are good kids and next time something out of the ordinary happens, talking with them is probably the best solution.
When God, not a church and not some guys in charge, but when God decides to make a commandment, there's a good reason behind it which will only be found by talking to Him.
Faith is something that cannot be logically explained. It's something inside you which comes from an outside heavenly source. It's believing without seeing the whole picture, but knowing it's a good picture. It's opening up your heart and mind to something beyond yourself and the world you see around you. It starts small and grows. Faith defies logic.