Just found the reason after doing some more research. The text inside the EditText has some default padding. That's why the 9-patch was stretched more when I ran it on real device. All I had to do was to set padding to 0.
Setting top padding to 0 example:
android:paddingTop="0dp"
Do it like this for top, bottom, left, right and background will stay fixed :)