Often, when non-Muslims object to certain Muslim laws or practices, these non-Muslims find, upon further investigation, that they have misinterpreted the laws or the context within which it is expected to be implemented, or that mainstream1 Muslims do not even have that law or engage in that practice.
Practices by extremists (who make up about 3% of the global Muslim population) or other minority Muslim groups annoy some people, who wrongfully raise their objections with mainstream traditional Muslims (who make up close to 90% of Muslims).
Therefore, when one encounters a practice that appears questionable, one should first ascertain whether or not this practice is actually carried out, exactly who engages in it, and what the context for it is.
1. On this website, "mainstream" refers to traditional Sunni Muslims.