Epipens come in a grand total of 2 sizes to cover everyone from small children to very large adults, I feel like the precision of the dose isn't that important...
"Mylan's efforts to maintain its market dominance were aided when Sanofi's competing product was recalled in November 2015 and further when Teva's generic competitor was rejected by the FDA in March 2016.[76]"
Yes, you can load a precise dose into a device, but the device has to actually work, reliably and consistently. This is apparently a hard problem, for at least two Epipen competitors. Since Epipen has no serious competitors for a device like this, they get to charge as much as they dare.