This question already has an answer here:
You have a multi-threaded CPU. Your computer has one processor, with two physical cores, and two virtual threads on each core. So to the computer it sees four cores/threads available. This makes it easier for load balancing and sharing of the CPU between processes. See this Wikipedia article.