It sounds something like what Final Fantasy II tried to do. You increased your stats not by leveling up, but by using each skill. This meant that getting hit would eventually boost HP and Defense, while using a weapon would boost your Attack as well as your proficiency with said weapon.
It's a solid idea on paper, but you'll have to take a lot of time to balance it well in practice. The best way to improve your characters in FFII ended up being to ignore the enemies completely and spend all your time making your characters attack each other instead. The attackers would improve their Attack and equipment, the victims would improve their HP and Defense.
They also tried applying the same method to magic, and that didn't work out well either. You had to continually use a spell to level it up, but all that meant was that the spells you wanted to use were absolutely useless. For example, let's say you wanted to inflict Poison on your opponents. Your Poison spell is at Level 1, so it's not accurate or effective at all. You're going to miss every single time you used the spell. Now, you're going to say that you just neglected to level up your Poison spell, and THAT'S THE PROBLEM! You didn't earn points towards your Poison spell by using it because it missed or had no effect, and you're not going to want to use it because is misses and never works. Because simply bashing your enemies in with physical attacks was more efficient, that's all you were going to do, and because that's all you did, it became much more efficient. The worst part is, Magic was actually incredibly useful if you leveled it up so it worked, BECAUSE it worked. You were meant to use status spells on bosses. You were supposed to whittle them down with Poison, and debuff their boosts and spells with your own, and the bosses were built around this principle. However, because the stat system was so screwed up, all anybody ever did, and was encouraged to do through gameplay, was grind more Attack and HP and go into it with overpowered physical fighters, praying that their massive stats would overcome the intended strategy.
You might be thinking to just do a Mentor system like Skyrim, where you pay specific characters to boost your stats. This way, you control your stats solely through money while still claiming that they're "training" their skills, but then I have to ask you: What is money now but a different form of EXP, and thus, leveling?
Anyways, like I said, it's a good idea on paper, but you're going to have to do a lot of play-testing to get the concept working correctly before you start putting your game together, and even then, you'll need to do more play-testing during production to make sure your players are guided to play it the way you intend instead of trying to fight the system and finding a more efficient way that kills all of the point.
Speaking of efficiency, let me give you another example of this concept done wrong. (not that you have a bad idea, but I'd like you to avoid pitfalls ahead of time) Final Fantasy VIII used a special system to boost stats and learn magic. You had to "Draw" magic from enemies before you could use them. Basically, imagine a "Steal" command that would take something like 3 Fire, and thus let you cast Fire three times. You could boost your stats by "Junctioning" magic you had collected. You would essentially attach your magic into a stat like Attack. If you had 99 Fire, and Fire was attached to your Attack, you would have much higher Attack. If you used your Fire spells, you would lower your Attack since there was less spells attached, thus driving you to constantly refill your stock, IN THEORY. What ended up happening was that the player would spend hours gathering full magic in a single battle, attach them to their stats, and then play a screwed up game where they ran from every random encounter and used only physical attacks on all bosses and unavoidable fights. This was because the game also used scaled enemies calculated by your level, so Junctioning yourself to incredible stats and keeping your levels as low as possible until you found the "No Encounters" accessory broke the game in the player's favor.
This system would have actually worked if there were some minor changes. First of all, Drawing magic was not like Stealing items because the probability of success never went down after each use. You could get into a fight and with some patience, Draw a full stack of 99 of each spell the enemy had with no issues. If it was like Stealing, where you could only successfully Draw magic once per enemy, you'd discourage this. Second, Junctioning needed to be restricted only by Magic type instead of amount of magic. Attaching Fire to your Attack should have been something like a flat 10% boost regardless of the amount of spells you had. That way, you'd still be strategizing around the system instead of being taught to hoard your magic and never use it. You'd be more willing to allow more strategies in your fighting. Finally, scaled enemies were a bad idea for this sort of system. It encouraged looking for a way to break the system and getting stronger that way instead of being encouraged to work within the system.
Anyways, I only give these examples of alternate systems done wrong so you don't waste your time making the same mistakes. FFII taught to double-check how the system works in-action instead of only before building the rest of the game, and to make adjustments accordingly. FFVIII taught to avoid making it too efficient to do things that were not fun (Drawing was too efficient), and to avoid encouraging the player to restrict their choices as they play. Don't get me wrong, I'd love to see alternate systems done, and done well. When they're done well, it can be a lot of fun and allows for more strategic play. It's just that it's very easy to do it wrong, and the entire game suffers for it.