When the miners package the blocks, they need to verify each transaction with a digital signature, confirm that there is no problem, and then record the transaction in the block. But for the average user, he only cares about how many assets are in each account and does not need to verify every transaction. Segwit is the digital signature information in the block out, so that each block can carry more transactions, thus achieving the purpose of expansion.