Why did he salute me?

So im 18 and i was walking by me sports instructor today and he saluted me! We get on well and he has helped me a lot with a few things but why did he salute me? What does it mean?
Why did he salute me?
Post Opinion