2D Box Collider floating slightly above edge collider/boxcollider?

Ok, so I am working on a 2D platformer and while testing my raycasts I noticed my character was floating slightly above the platform so I looked it up and found a post suggesting to use edge collider, however after trying that it does the same thing here are pics:

Box Collider:

Edge Collider:


Any ideas on why/how this is happening?

I had the same problem and i even asked the same, here, but i found a solution. I changed the pixels per unit value of my sprites, from 100 to 1, and i raised the gravity value by 100 in the Physics2D settings (from -9.81 to -981) because since the objects were too big, gravity was not working as intended.