Having more layers of clothing keep us warmer in winters as they have a space between them. That space gets filled up with air. Air acts as an insulator of heat, preventing our body heat from escaping in the surroundings.
Hence, wearing more layers of clothing during winter keeps us warmer than wearing just one thick piece of clothing.