Lol y u doin work abt Harry Potter, anyways.
The answer is:
Loneliness is a state which you feel like that you’re alone, your loneliness could make you feel like no one wants to be around you or you don’t feel like you fit in, in Harry’s prospective he probably felt alone since his family didn’t know he was a wizard.