https://en.wikipedia.org/wiki/Morphism states that
In mathematics, particularly in category theory, a morphism is a structure-preserving map from one mathematical structure to another one of the same type.
while a Mathematical structure
is a set endowed with some additional features on the set (e.g. an operation, relation, metric, or topology).
It seems to me that a morphism is a special case of a function, which
is a binary relation between two sets that associates each element of the first set to exactly one element of the second set.
because the function does not preserve any structure in general.
However, How is a morphism different from a function suggests that a morphism is the more general thing.
What am I getting wrong?