Hi Leah,
Well spotted!
In fact in the first one -
"...première Française docteur ès ..." Française is a noun ( the first French woman to have a PhD in )
in the second
"... première astronome française...", française is the adjective which is not capitalised ( the first French female astronomer)
Hope this helps!