Just like the EU itself, it's a compromise. Every member state wants to have its cake (economic benefits) and eat it, too (full sovereignty).
That can't work because a deep economic integration is... surprise, surprise, a deep political and social integration.
The EU Parliament is probably the only parliament in the world that I know of, that can't introduce new laws.