Why is sterilizing dogs necessary?