Why is touching the live wire of a socket dangerous inside an apartment few stories up?
Our body is both a variable skin resistance and a lossy dielectric capacitor depending on the surface area. If perfectly insulated on clean Teflon plastic or mica sheets you would not feel anything.  

But with humidity, there is stray capacitance in the air and sweaty socks on humid floors may conduct even more. ( Moisture has 80x the relative dielectric constant of air meaning lower impedance at some frequency.)

Even concrete can contain some moisture but is definitely drier than on soil.
Most of the capacitance is from surface moisture and RH in the air. 

Obviously touching a metal earth bonded appliance or plumbing provides direct contact to earth bonded wiring.  The 2 pronged metal skin appliances ( like toasters) must have "Double insulated" plastic or mica materials for redundancy. However, water immersion cleaning can bypass this if any residue is left behind. ( so warnings exist)

So what floor you live on has nothing to do with the Earth ground resistance which often defined as &lt; 100 Ohm depending on what it is protecting.

Nor does the risk of shock or the equivalent impedance having anything to do with what floor you live on.

A fingertip ( often rated at 100pF for ESD) might have a dry resistance from >10M to &lt;10k with an arc from ionization of the sweat gland moisture on the skin.

0.25 mA ~ 0.5mA is what North America uses for GFCI ground fault interrupters which are also the limit for insulation leakage current from line filters to ground in 3 pronged plugs.

While ( I recall) EU standards for GFCI use 20mA for GFCI's which prevent false tripping and might hurt but should not kill you.  The IEC standards group for EU are reviewing this standard, I believe, for risks vs nuisance trips and possible changes.