Time machine's space may exceed your main drive space because it snapshots your drive at different times, and compresses it. This, over a long period of time, inevitably consumes up to the full storage of the drive dedicated to time machine. When the full storage of the drive using time machine is used, the oldest historical backups are deleted.
Working as intended.