Why does oberon play a trick on titania?

She has taken a boy from him that he wanted as a servant. By distracting her, he hopes to get the boy back. (It works.)