"Got" indicates that you received it from some place else, that it (soap it this case) has moved (thus accusative)

If you had said "I have some soap in my eye" it would be prepositional.