When making claims like this, it’s a good idea to cite someone who has made such statements. I don’t think anyone has said you should not learn coding. The question is whether you need to learn coding to test and whether it distracts from your primary mission. The examples you gave are good. However, I think it is more common for testers to learn coding and spend time with mindless automation. I don’t think that is useful, although it is very common in the industry.