Peter was technically retired when Ben Reilly was Spider-Man. When he returned, Ben Reilly became Scarlet Spider.
The problem is that there really can't be two Spider-Men at the same time for long periods of time. One of them has to change their name. We assume it has to be Miles because Peter came first.