Sometimes it's nice to get a meal with no dishes to clean up. There's no shame in it and frankly most people don't notice you, less care about you. You're just grabbing a meal.
Now if you're lonely and eating out alone is stressful, well, it's your life. You can make friends or connect with family members.