I don't think lasers predate Star Trek by many years.
The first laser was functional in 1960. Star Trek premiered 1966. That's not many years.
Of course, the laser patents were filed years earlier, and the theories years before that. But working hardware? Fairly recent for Star Trek.