Grouping variables without making any summary or modification doesn't have any effect
By doing this, you are passing the same dataframe twice to the ggplot() function wich is not correct.
It is not clear what you are trying to accomplish with this code, to help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one: