The writer creates the role on the page and then the actor takes it and makes it their own.
When my friends and I would act out movies as kids, we'd play the guys' roles, since they had the most interesting things to do. Decades later, I can hardly believe my sons and daughter are seeing many of the same limited choices in current films.