According to Wikipedia [0] he was engaged as her tutor. At this stage in his career he had been given a post in the Berlin Academy by the monarch of Prussia, so as long as he was publishing research he could probably spend quite a bit of time doing whatever took his fancy.
[0] https://en.wikipedia.org/wiki/Leonhard_Euler#Berlin