Correct. So in some cases the warranty can be the same as the expected service life but that is a choice the manufacturer makes to send a message to potential buyers. The legal warranty is just a minimum duration imposed by law, while the service life changes from product to product.
In some EU countries the law mandates that manufacturers clearly state the warranty period and the average service life (where you can use the product reasonably within the original parameters). So the manufacturer must be able to fix/replace (not necessarily for free) the product if hidden flaws caused it to fail within the average lifetime period. This means only manufacturers who are certain their product is up to the task will declare a longer life and charge a premium but also guarantee that period of support.
Most products have warranties that are far shorter than their expected service life. Clothes may have as little as 30 days warranty but the reasonable expectation is for a far longer expected lifetime.
In some EU countries the law mandates that manufacturers clearly state the warranty period and the average service life (where you can use the product reasonably within the original parameters). So the manufacturer must be able to fix/replace (not necessarily for free) the product if hidden flaws caused it to fail within the average lifetime period. This means only manufacturers who are certain their product is up to the task will declare a longer life and charge a premium but also guarantee that period of support.
Most products have warranties that are far shorter than their expected service life. Clothes may have as little as 30 days warranty but the reasonable expectation is for a far longer expected lifetime.