Text this: Gravitational higher-form symmetries and the origin of hidden symmetries in Kaluza-Klein compactifications