I am familiar with Angularjs(1.x) and use templates in directives. 

Currently I am learning nodejs and as a part of the course template engines are mentioned. What are the advantages of using them on the backend? 

Currently I can't see any use.