Probably a multitude of reasons.
1) According to David Graeber’s Bull**** Jobs, the more frontline and essential you are, paradoxically the less respect you are given, the less you get paid, and the harder you are expected to work. Pharmacists and pharmacy techs are frontline and the backbone of CVS, whereas software engineers might be less so.
2) Supply and demand. There has been a huge shortage of SWEs over the last decade. Meanwhile pharmacy schools expanded like crazy and retail stores are closing.
For these reasons we need more people to go into software engineering and other white collar bull**** jobs, and fewer into frontline jobs such as pharmacy.