means that
exceptional achievements often depend on painstaking effort and sustained attention, rather than natural talent alone.
For example, a genius person usually work hard and exert great effort. This is a situation where “Genius is an infinite capacity for taking pains” applies.