Making different textiles is an old technology which developed in parallel with other technologies. Human race began making textiles in primitive ways, slow and imperfect but in time improved and today we have better, cheaper and more beautiful fabrics.
Weaving is a craft that we know of for thousands of years. Beginning of weaving marks a great step in human history because it shows human will to bend nature to its own liking.
Knitting is process of making fabric by method of looping the yarn into a series of interconnected loops. Nobody know who was the first to have an idea to do that, but that techniques is used even today.