I think this content came from a ROS1 Course Project, which of course would have taught how to create catkin packages. Further down it says to create all content in ros2_ws which suggests it is perfectly fine to use colcon build.
This is confusing for someone coming into the project for the first time - I think it should be edited.