Why do most smartphones have the charging slot at the bottom?

Most of the modern smartphones have the charging slot at the bottom. Purely from a UX point of view, wouldn't it make more sense to have it at the top instead? I understand in some cases, it wouldn't (e.g. charging docks or car holders), but in the majority of the cases, I think it would.