I don't know if this will answer your question, but the first thing you made me think is the following situation widely studied in category theory. Let $(\mathcal{C}, \otimes, 1)$ be a symmetric monoidal model category, then it is said to admit internal homs if for every object $X$ of $\mathcal{C}$ the functor $X \otimes - \colon \mathcal{C} \rightarrow \mathcal{C}$ admits a right adjoint i.e. we have a functor $F(X,-)\colon \mathcal{C}\rightarrow \mathcal{C}$ right adjoint to $X \otimes -$.
If the monoidal structure is not symmetric we have to be careful to differentiate between $X \otimes - $ and $- \otimes X$ and we have to ask if they have separately their own right adjoints, but for now lets take the easy case and consider symmetric monoidal structures.
From the definitions alone and Yoneda lemma you can deduce that there is a natural isomorphism $F(X \otimes Y, Z) \cong F(X, F(Y,Z))$, which is the version in the category $\mathcal{C}$ of the exponential law $Z^{X \times Y}\cong (Z^{Y})^X$. So we usually consider $F(X,Y)$ as an object of $\mathcal{C}$ which represents the set of morphisms from $X$ to $Y$.
You probably saw a lot of such situations, only not with this formulation.
If you consider $\mathcal{C}$ to be the category of compactly generated topological spaces with $\otimes = \times$ the usual product then $F(X,Y)=Y^X$ is the space of continuous functions from $X$ to $Y$ with the compact-open topology.
Or if you fix $R$ a commutative ring, you can take $\mathcal{C}$ to be the category of left $R$-modules and as $\otimes$ the tensor product over $R$, then $F(X,Y)$ is the set of morphisms of $R$-modules from $X$ to $Y$ wich can be made in an $R$-module by taking $(r.\phi)(x)=r.\phi(x)$.
The example you presented is $\mathcal{C}=Sets$ the category of sets with $\otimes =\times$ the usual product, then clearly $F(X,Y)$ is just the set of functions from $X$ to $Y$.
I think your question can be rephrased as follows: given any category $\mathcal{C}$ does such structure exists? The answer is a clear no: there are easy counterexamples.
A non trivial counterexample is the category of topological spaces (even non-compactly generated!): here you have again a symmetric monoidal structure given by the usual product $\times$ but for general spaces $X, Y, Z$ the exponential law $Z^{X \times Y} \cong (Z^{X})^Y$ does not hold. Therefore $X \times -$ does not have a right adjoint.
Now an easy counterexample created ad hoc to deny the fact that the sets of morphisms are always internal hom objects in the sense I defined above. Consider $G$ a non-trivial group, then we can form $BG$ the category with just one object, call it $\ast$, and as hom sets we take $\text{Hom}(\ast, \ast)=G$ where the composition law is given by the product on $G$. Then for any symmetric monoidal structure $\otimes$ on this category we have $\ast \otimes \ast= \ast$, hence $\ast \otimes -$ is just the identity functor on the category. Thus its right adjoint must be still the identity and we get $F(\ast, \ast)= \ast$. But in $BG$ the hom set $\text{Hom}(\ast, \ast)$ is $G$, not only a point.