proof of work – 1-CPU-1 Vote Bitcoin confusion

How does the 1-CPU-1 vote works because if we’re talking about miners doing computation power to vote, then successful solver of the hash wins the block, so basically only the single cpu (considering its a solo miner in the early days) is voting for the entire block,

secondly how is solving the hash saying that all the transactions are valid when there is only 1 vote who wins the mining block

Thank you!