More than one job per environment

This is an example gitlab-ci wich execution failed with the message: The deployment job is older than the previously succeeded deployment job, and therefore cannot be run

one:
  environment:
    name: dev
  stage: deploy
  script:
    - echo "one"

two:
  environment:
    name: dev
  stage: deploy
  script:
    - echo "two"

The problem is in the same environment in both jobs. It's very strange for me, because it's normal in other ci/cd's. There are a lot of cases when it's needed. And, yes, i know about wildcard environments.

Can you explain for me, is this a special logic or maybe a bug?

Edited by Vitaly Uvarov