The idea was to enable people to share and download torrent files and magnet links. So, the website was never intended to be an illegal online platform.
Regardless of what some people say about piratesbay, the initial objective of developing the website was to establish a reliable peer-to-peer platform where people could share information through BitTorrent procedures.