a its just an alias.
For the inner subquery, you are just setting an alias as a.
This is similar to how we are setting alias to table.
select * from tbl a.
here 'a' is an alias for table tbl...
Like this 'a' is an alias for the query
SELECT DISTINCT TOP 6 salary
FROM employee
ORDER BY salary DESC
You can set any name to the alias.