Step back a bit. Who wrote the Gospels? We have no idea. Nearly unanimously accepted is the model that Mark was written first followed by the redactions Matt and Luke. John might well have been written prior to Luke but within a community somewhat isolated. Anyway, all are anonymous works. The naming convention "The Gospel according to....." makes clear that these titles were assigned by a central highly influential authority not the authors/redactors themselves.
Randel Helms and others make a very compelling argument that Luke/Acts (or some early form of them) was the work of an influential woman. If you pause and look at it the role of women and the inner voice of women is unique in being positive. The author goes so far as to change passages in their source texts to make the men look less favorable and women more so. The choice of naming the author "Luke" is likely as simple as picking a name mentioned in texts as a companion of Paul (Philemon 1:24, no mention of him being a writer) to add to the authenticity/authority after the unique aspects of it had gained popularity. Same for "Mark". Given the misogyny of the majority of the burgeoning orthodoxy, it is understandable the redactor wished to be anonymous.