If you have a child or have dealings with children you are certainly familiar with the phrase "but why?". I am almost certain than more than 90% of the time your answer has been "because I say so". We expect our children to understand that we know more than them, we know better, we love them and we will not steer them wrong. We want them to understand that if we ask the to do or not do something or to go or not to go somewhere it is for their own good or for the good of others. We want them to trust us and obey our directions, instructions and commands without question. We want them to know that we will explain ourselves only when we think it is necessary or the particular direction requires explanation. Even when they think what we are asking make no sense to them we want them to obey anyway.
God requires and demands our obedience even when it does not make sense. Jesus Himself was obedient and His obedience is what paved the way for us to return to God. "And being found in fashion as a man, he humbled himself, and became obedient unto death, even the death of the cross." Philippians 2:8. Jesus told His followers that the proof of their love for Him was in obeying His commandments. "If ye love me, keep my commandments." John 14:15.
It is probably easy to obey God when the instruction makes sense or is backed by a reason or supported by a reward. However ours is to obey whether it makes sense or not. Obedience tells God we trust Him and that He knows all things. It is essential to our Christian faith. We cannot pick and choose what and when to obey. God will not always explain Himself but disobedience can have grave and sometimes fatal consequences. The young prophet who disobeyed God's command not to eat in a certain place met his untimely death. (1 Kings 13). Adam's disobedience landed us all on the road to damnation and Jesus's obedience reconciled us to God.
Noah must have felt pretty foolish building a humongous ark which would protect people from an alleged impending flood when there was no indication that rain was coming. He obeyed anyway. It made no sense to Abraham when God asked him to sacrifice his only son, the very one who would perpetuate his lineage in fulfillment of God's own promise. He obeyed anyway.
You may find some of the commandments in the word of God senseless, but obey anyway. As you walk with God closely, He will ask you to do things that make no sense to you, obey anyway. He knows what He is doing.