If one company acquires another public company they can do what they want with it ~ make it a subsidiary, merge it into the primary company whatever. But the shareholders have to be compensated.
The basic flaw in your logic is WHY would a company buy another company if it was worthless??? Lol!