Questions & Answers about Aan wie behoort die motor?
Because behoort in this sense is normally used with the preposition aan: behoort aan = belongs to. So when you ask about the owner, you keep aan and say aan wie.
This is similar to formal English To whom does the car belong? Even though everyday English often puts the preposition at the end, Afrikaans usually keeps it before wie.