@Idilinaa let's break down and simplify your argument.
I'm not sure an example of a middle class family in Hargeisa can be taken into consideration as we're talking about the entire country, where millions live under the tyrant rule of AS and millions are IDPs barely surviving on aid programs provided by UN agencies and other NGOs.
Not to mention the millions who live a nomadic lifestyle.
Where exactly did you come upa with that 6k per year per person value if I may ask?!
You calculated 466-516 dollars of expenses per "family" in "Hargeisa" or 500 dollars if we take the middle point. That's 500 dollars per family not per person, the 6k would be the purchasing power of the family not per individual. And that's also in Hargeisa, which is a stable city with a working economy compared to huge swaths of the country.
I'm actually generous with that 4 million figure and you'd be fully pleased if you were raised in Somalia. Most people don't actually work at all, every family has one or two individuals max that hustle and make money, the rest are mouths to feed waiting for someone. Not to mention my calculation was 450 per working person of those 4Million, which is fairly decent in my own honest assessment. For example; a mid tier employee that works for Golis or Hormuud telecommunication companies makes about 200-350 dollars per month, I know this because 5 of my cousins work for Golis, and they have bachelors degree from local university as well, imagine what would a person with no degrees can make in the market, they barely make 200 dollars per month.
I actually added the remittances in my calculations as well, 150 dollars per person of the working 4 million, which equates to 600 million dollars per month, and 7.2 billion dollars per year. Not 2 billion, Somali remittance sent by diaspora (including diasporas in other African countries, Asia, Europe, Australia and North America) is higher than what's estimated and I'm 100% sure of that.
That's another generalisation, the standard of living is drastically lower in South Central Somalia, the average family cannot afford those expensive pastas or milk cans. Instead they use their livestock for their milk and grow rice and wheat from their land, their economic output is significantly lower and their income is depleted by constant invasions, terrorism and mass displacements.
If we're making estimations and honest analysis we shouldn't be solely focusing on the upper end of the society.
If we take your figure of 5k GDP per capita in Somalia, shouldn't the gross domestic product of the country be 90 billion or more?! Do you actually think Somalia has a 90 billion GDP?! Higher than 43 out of 54 African Nations?! That figure would put Somalia in the top 10.

... That's insane tbh.
Please let's not get carried away with enthusiasm and patriotic exaggeration if we're being fairly logical and analytical.