The Sample Programs do reasonably interesting things. Some can be used as command line utilities, others demonstrate interesting concepts like "cumulative selection", and so on. The programs use whatever features of Cobra are needed to accomplish the purpose of the program.
In contrast to these sample programs, the How To Programs explicitly demonstrate language features and techniques. While the programs themselves are rather purposeless, they make good tutorials and have an explicit order.