Something people get out of religion is that not everything can be understood. I believe this to be intellectually true - whether because creation cannot understand the more complex creator, or because we simply evolved to understand what we need to survive but there's no reason to think we can see objective truth (see Kant's Critique of Pure reason)
Religion embodies this humility (recognition that I can't understand it all) To use your example, we follow kosher laws not because they make sense to us but because they are commandments of a higher power which we are too humble to know better than. The fact that some of these commandments also "make practical sense" almost undermines that point. Ie - just because pork is now USDA-inspected doesn't empower is to decide "oh we know better than G-d"
I have grown from an atheist to someone who tried to embody the above, but it works even if you treat it as a pure metaphor for recognizing that some things are beyond us.