Why is Egypt considered middle east, even though it's in Africa?

They consider Egypt to be part of the middle east, but, it's in Africa, no other middle east country is in africa
Why is Egypt considered middle east, even though it's in Africa?
Post Opinion