Police do often catch burglars eventually.
While some burglars have gotten away Scot free, many burglars do wind up getting caught.
Especially now as many places and homes have security cameras and when the pictures of the person or video of the burglar is put out on the internet it helps someone identify the person who committed the burglary.
Bank robbers almost always get caught eventually even if they are not caught right away.
It may take a few months or longer to catch the bank robber but most of them are caught within a day or two of committing the burglary.
Years ago it used to be easier to get away with burglary without being caught but now it's much easier to get caught.