How can you get 5 cards in Texas hold em

I was just learning the rules of Texas hold em but I can’t figure out how to win. The rules say you need 5 cards to win. You have 2 for yourself and 5 community. However, if two are playing, then one is a card short. How can you possibly win?

Google says that it’s for the table to share, but I was under the assumption that you take the card for yourself when you put the turn down. Can the (hypothetical) player 1 and 2 use the same 3 cards? Do they bring it towards themselves or do they just say that they use those cards when they are at the middle? Again, I don’t really understand