The well-known, established poker sites are generally trustworthy, and understanding how they make money helps explain why.
A poker site lets you play against other people using your own funds. You transfer money into your account and play with it. The site's income comes from the rake, a small percentage taken from each pot in cash games. For example, they might take a few cents per dollar in the pot. With hundreds of tables running at once, that tiny cut adds up to a healthy business.
Tournaments work a little differently, usually charging a fee. You'll often see something like "$125+$10", meaning $125 goes into the prize pool and the extra $10 is the site's fee.
The takeaway is that these sites profit from the rake and fees, not from you losing. They have no incentive to see you go broke. If you're ever unsure about a site, look up references and reviews online.
And a friendly reminder: if you choose to play, do so responsibly, set limits, and only ever risk money you can comfortably afford to lose.