* this is a common pattern of settlement
* the different geographies of two countries make a very simple (population / land area) density figure misleading, because Belgium is nearly 100% riverbank or floodplain and Pakistan is not
This is such a known problem that the US Census already has a different density measurement method, population-weighted density: https://www.smartcitiesdive.com/ex/sustainablecitiescollecti...
https://www.researchgate.net/profile/Kobe-Boussauw/publicati...
As a result, the region has a population density of 240/km² (only slightly less than Pakistan) but about 2/3rds of the population is in this valley representing 1/16th of the area of Wallonia. Flanders is mostly flat and more evenly settled.
This is actually more similar than I expected to the population distribution in Pakistan, with Punjab being a flat plain with an evenly distributed population, and the rest of the country being mostly settled along one river. By the way, Belgium also suffered a large flooding event last year in this valley, although nowhere near as deadly as what is happening in Pakistan.
Macau is amazingly densely populated, but at the same time the same density as Paris, but 1/3 of the size. It's an hour walk from one end to the other according to Google Maps.
India on the other hand is just 10% denser than Belgium, but doesn't feel like that when you look at photos of its cities and trains loaded with people.
[0] Ourworldindata.org
https://www.sheffield.ac.uk/news/nr/land-cover-atlas-uk-1.74...
e.g. More land is peat bogs than is built up.
That's a significantly lower than here in Belgium (376/km², and 490/km² here in Flanders).
I'm not sure which country you live in, but although I would absolutely move back home (at about 100/km²) if I could, it's not the urban hell you seem to imagine.