Copyright is formed when a human makes a choice about equivalent ways of implementing an algorithm.
For example, it would interfere with e.g. copyright of scientific/mathematical papers if algorithms were copyrightable, as mathematicians would not be able to extend another mathematician’s ideas without first gaining permission.