Looking back many hundreds of years, early lutes were fretless, but they began getting frets from the late 16th century. These frets subdivide a fretboard so a string can be pressed anywhere between two frets and the note will have the desired pitch. Without them, extreme accuracy is needed for intonation.