The comments are functional and useful in cases where you do not have a container element.
From the docs:
The and comments act as start/end markers, defining a “virtual element” that contains the markup inside. Knockout understands this virtual element syntax and binds as if you had a real container element.