The phrase "useless exercise" means doing something that has no purpose or benefit, and therefore, it is a waste of time and effort.