A tidal hypothesis about the origin of planetary rotation