It allows you write code that works for multiple types. For example, consider the following function in C++:
template <typename T>
T min(T a, T b)
{
if (a < b)
return a;
else
return b;
}
This code works for any type T (ints, strings, floating point numbers) that can be compared with less-than. In a language like Go that does not support generics, you would have to write a min function for ints, a different min function for strings, etc.