That's down to how the EU works. These kind of decisions are made in multiple governing bodies. There's the council, which is made up of representatives from member states governments and the parliament, which is made up of directly elected MEPs.
The national government of Bulgaria's position isn't necessarily in line with Bulgarian MEPs.