Assuming a soft magic system, and some explanation for why only a small percentage of the population is capable of magic. There are plenty of forms of fantasy though. The Kingkiller Chronicles, for instance, uses a hard magic system, it has rules and those rules dictate who can use it and who cannot. Its magic, of which there are two forms, the most common of which is known as sympathy, allows a person to bind and mentally control things to a certain extent, and depending on their own strength as well as other factors. For instance, a person, using sympathy, can light a fire using their own body heat, however, doing so is dangerous, as you could drain your heat so much that you'd die. In that world, using runes, Arcanists are able to create feats of "technology" that utilize sympathy in a way that might as well be sci-fi. One such contraption is made by the main character of the story, it is an object to be hung from a carriage or wagon that repels incoming arrows. It was made using complex sympathetic magic and then sold at as low a price as possible to protect caravans. In this way, though the device is new, magic pervades the world.
Setting aside that this relies on being original trilogy or later in the series, this is actually where that second form of magic comes in, from Kingkiller chronicles. Naming. In the lore, everything has a name. In fact, the first book is called "The Name of The Wind". However, the names of things aren't something you can study. Naming is something that can only be taught to those with the aptitude, and even then, those who are capable of naming are usually only able to learn a single word or two. True namers however, are able to call upon the wind, or the earth, or Iron, or whatever to bring about great change. Also, there is a barrier for entry before even this. Sympathy, the first magic system, requires an exceptionally cunning mind. You have to be able to convince yourself that something you know to be true, like gravity, is false. Being capable of sympathy is the prerequisite for most of the entrants to the University in the world, and only at the university could you find a person with the knowledge to train a namer.
Kvothe, the main character in the Kingkiller Chronicles is devilishly intelligent. He is one of the youngest to ever enter the university, and he did so without a single coin to his name, leveraging his potential and using his cunning tongue to get them to establish for him a scholarship, with a stipend for living expenses, something they'd never done before. As a result, the things he's able to do, just with sympathy, are amazing even to others who are capable of sympathy, because intelligence is a barrier to power.
Writing a magic system that both makes it prohibitive, but commonplace, isn't impossible, it's just not what we see most often. I chose to use KKC as an example, but I could just as easily have pointed to Dungeons and Dragons, or Dragon Age, or World of Warcraft, where feats of magical power are commonplace enough to where all know of them, but prohibited by aptitude and wealth enough that only few actually have diverse experience with them. Another such example could be found in the hard magic systems of Full Metal Alchemist, or Avatar the Last Airbender, where only a small percentage of people are actively using magic. Alchemy, though presented as science, is very much magic in the world of FMA, and only those who understand the underlying scientific law of equivalent exchange can actually use alchemy. Bending, in the Avatar universe, is not something that everyone can inherently do. Katara is the only bender in the southern water tribe. Most people in their universe are not Benders. And again the avatar is above even that level of mundane magic, in that he is able to access all the elements for the purposes of bending.
Simply put, while Tolkein might be the father of modern fantasy fiction, his vision is but one in a multitude of fantastic fiction. Technology in star wars is a form of minor magic, something mundane enough that any with money can access it, like enchanted items in a fantasy realm. You don't question why a golem is animated, and you don't question how a droid works.