In category theory, the exponential object $X^Y$ is defined, roughly, by saying that if we take some other object $Z$ and the product between $Z$ and $X$, then any morphism from that product to $Y$ has an equivalent morphism that “goes through” $X^Y$.
However, what I find weird about this construction (note that category theory in general is weird to me), is that we need a third object $Z$ and the assumption that a cartesian product exists between them, to define the exponential object $X^Y$.
Is it not possible to define it more directly somehow? Intuitely it seems like we don’t need to talk about $Z$ or about cartesian products, to talk about functions from $X$ to $Y$ (I know that category theory is not only about functions, but this is how I intuitively think about it).
First note that the idea of a universal property in category theory is virtually always defined in terms of some other objects, so the idea of adding $Z$ in the definition isn't special for exponentials:
$T$ is a terminal object in a category if, for any other object $X$, there is a unique morphism $X \to T$.
$C$ is the product of $A$ and $B$ if there are maps $C \to A$ and $C \to B$ and for any other object $D$ with maps $f: D \to A$ and $g: D \to B$, there is a unique morphism $D \to C$ which $f,g$ factor through.
The point is that to define an object, you can only refer to other objects in the category - so this is really the most direct way also to define the exponential object.
In terms of requiring binary products to exist, this may seem odd at first glance, but seemingly turns out to be the most sensible definition. Personally, I think of the exponential object $X^Y$ as the most general object (in some loose sense) for which giving a $Y$ combines with it to give an $X$.