Answer:
They provide a defense mechanism against infection by viruses.
Step-by-step explanation:
They are the natural enzymes of bacteria, which they use for their own protection against viruses. The restriction enzymes cut down the viral DNA, but does not harm to the bacterial chromosome. They are called restriction enzymes because they restrict the growth of virus.