How would you use bitcoins for a business if someone who has access to the company's wallet is able to just take it and drain it without anyone knowing?
Lots of ways. Pretty much, the same way you protect cash. You don't leave large amounts of it in insecure places. You audit accesses to the places you store it. You require multiple approvals for operations.
Say Walmart starts accepting bitcoins, they pay for new stores with bitcoins, pay vendors, pay for merchandise, etc.
Their accountants are writing checks, keeping track of purchases etc.
If one of the accountants decides to just write himself a check for a buttload, there is a paper trail and the person is prosecuted.
If Walmart is using bitcoins, the accountant takes the bitcoin wallet, makes a copy, takes it to the nearest library and uses it to send to hundreds of new bitcoin addresses of his own, and he is rich.
You have to be joking. Walmart wouldn't put any wallet holding large amounts of money on a computer anyone could copy files from.
How is this prevented?
Just the tiniest bit of common sense 100% stops this. There are no wallet files, the keys are kept on physically secure devices. Transactions can only come in from approved sources and go through verification and logging before being signed and securely exported. The same way you secure stock transactions. The same way you secure wire transfers.