Why is Minecraft Java significantly more laggy than Bedrock?

Hey everyone!

For a while now, I noticed that vanilla Minecraft Java (I own the trial version) is significantly more laggy and GPU-dependent than Minecraft Bedrock edition.

Although I know a lot about the game, this is something that puzzles me. Different coding languages shouldn’t make a big deal either.

Any opinions would be appreciated!