The CATKIN_ENABLE_TESTING was added in catkin version 0.5.68. This line in the package.xml ensures that the required version for catkin is installed,