In ancient times, people often invested in gold for the future as it was a great investment option.
We are all modern people so no need to compare to ancient people and why did they invest in gold. Your comparison is too much and too exaggerating but I like it as it funny and makes me laugh.
Now people prefer to invest in Bitcoin, which is also known as digital gold. Bitcoin has several features that make people prefer investing in Bitcoin over gold. Bitcoin has a fixed supply while gold has no limited supply. Bitcoin is mined with a certain amount while gold mining has no limit.
Gold has limited supply but we just don't know the exact number and there is potential for finding more gold in deeper layers on Earth, from other planets, asteroids and somewhere in the space. It is not correct to say gold does not have a limited supply but of course, Bitcoin is clearly with its supply at 21 million bitcoins and it gives investors feeling of scarcity than gold. They will feel more FOMO with Bitcoin than with gold.