There's a lot going on there, but part of the expense is that they have to rush to develop the drug first, otherwise they get nothing for their investment.
Economically speaking, the patent system creates an all-pay auction. I recall from some of my undergrad coursework that this type of auction often generates enormous losses when put in practice.
this territory is moderated