This post is part of
Hollywood’s attempts to peek into the future are more art than science. Science-fiction TV shows, focused on making good stories, are happy to take liberties with what’s scientifically plausible if it serves the plot.
For the most part, audiences come along for the ride without questioning the realism. If the USS Enterprise crew is already doing a currently impossible thing, it isn’t such a leap of the imagination to think it also carries machines that beam matter across space or devices that cure diseases overnight.