Why wireframe thickness changes in edge mode?
Swapping between the different edit modes changes the look to show you what you're editing. Vertex select makes the points thicker, face select will highlight faces, and in your case, edge select makes the edges thicker.

It's purely UI based, the actual thickness of your edges is not changing. Renders won't look any different.

To display the same thickness, use the Viewport Overlays menu.