You have to be in good physical shape to BECOME a police officer. A lot of departments don't have fitness requirements after that.
However, you SHOULD stay in good physical shape after the Academy. It helps you do your job easier, and helps fight stress as well.