Answer:
This is because of surface tension. A flat piece of tinfoil has a lot of surface covered so it's much harder to break the surface tension.
Explanation:
The image below shows a water bug floating on water. This is because of surface tension. its legs don't break it so it stays afloat like a flat piece of tinfoil