Why can you not define a line as an infinate set of points?

An infinite set of points can be a microscopically small line segment. An infinite number of points does not mean an infinitely long line.