The ideal resolution TikTok videos is not 1920x1080 (landscape), it is 1080x1920 (portrait). So you are taking a landscape photo, cropping it to portrait then exporting it as landscape, which is why you have black bars at the side.
See here for how to create Portrait videos (for TikTok):