If you submit your manuscript to journal has impact factor for example 2.0, then they rejected your work due to lower standard of the manuscript. Then you tried to send it again to another journal with impact factor (3.0) which is higher than the first journal and they accepted it for publication.