They are different terms. Not every person who is homeless is a vagrant.
Go look at the definition of vagrant, and come back and tell me that a homeless person isn’t a vagrant according to every definition out there..