They could easily make a tyre which lasts the length of a race, but they mandate pit stops and two different tyre compounds to add interest - teams can use the mandatory pit stop to “undercut” or “overcut” competitors.
In fact, IIRC, for the 2005 season, changing tyres mid race for anything other than safety reasons was banned.
> In consumer driving, tires are expected to last 100,000 km or more.
This is much closer to 25,000-50,000km, and peaking at 70,000km. Source: https://www.pirelli.com/global/en-ww/road/how-many-kilometre...
Also, F1 cars are going up to 246 mph and doing heavy acceleration and breaking throughout the races, which seriously heats up the tires. Normal road tires would actually die sooner under those conditions. Just read up on who long tires last when people are doing street racing, burnouts, etc.
Racing slicks are a different material.
In Formula 1 racing, you go through multiple tires in one race.
In consumer driving, tires are expected to last 100,000 km or more.
There is even the practice, in racing, of using chemicals to attack the rubber to soften it.