The restriction enzymes are called so because they cut the DNA at specific locations called restriction sites.
The restriction enzymes present in E. coli cut the DNA of bacteriophage into fragments and render them inactive to protect themselves from any harm. Thus, restrict their growth and multiplication inside the host cell.