Respuesta :
I think it is because she had a hard time of it with Percy Bysshe when they were in Italy and wrote Frankenstein to "get back at him" once they returned to the UK. Although she had also a competition with her friend in which who has the best ghost story.
to give due credit to Lord Byron and others who inspired her novel