Human law is written for a crowd, most of whom aren’t very virtuous. So human laws do not forbid all vices, only the graver ones most people can avoid, chiefly those that hurt others. A law that asks for perfect virtue would push people into worse evils.