Loneliness is a game of the ego. A draining emotional state where the person suffers, experiences abandonment, unconsciously.
On the other hand, being alone is a state lived with awareness based on one's own choice, lacking a feeling of vulnerability, where the individual focuses on his own growth.
The two states of existence are distinguished by our awareness and point of view.