What is mapping type in index template?

When you index a document you do:

PUT index/type/id 

So type is part of the document coordinates.

But starting from 6.0, you can use only one type per index.
And types are going to be removed in 7.0/8.0