Not the same professors salary and other costs rise with inflation a drug once developed and a production line is in place does not face the same cost increase
A biologic production line requires extensive upkeep: it is a living product. Costs all around are higher. There are also Phase IV activities to consider.
Bottom line, all else being equal, biologics cost more than small-molecule drugs to make and distribute.