Most of the time they’re just there to make you _think_ that you shouldn’t be opening the box. In the US the Magnusen–Moss Warranty Act of 1977 explicitly prohibits companies from voiding any warranty merely because the owner opened up the device, repaired it, or had it repaired.