A man is swimming with a little girl wearing a pink life jacket in an indoor pool
A man is teaching his granddaughter to swim.
It is not implied that it is his granddaughter who  is  being taught to swim.
Just because the man is swimming with a little girl does not mean he is teaching her to swim.
The granddaughter could have been the man's daughter, or sister.